completionId: cgen-4cd2fbd543854c3795e9222f485a9a56
cgen-4cd2fbd543854c3795e9222f485a9a56
This commit is contained in:
parent
d09a7b93e2
commit
733f0b93a0
1 changed files with 2 additions and 1 deletions
|
|
@ -49,7 +49,8 @@ export default function ClientHub() {
|
|||
const loadDashboardData = async () => {
|
||||
try {
|
||||
setLoading(true);
|
||||
const token = (await (window as any).supabaseClient.auth.getSession()).data?.session?.access_token;
|
||||
const { data: { session } } = await supabase.auth.getSession();
|
||||
const token = session?.access_token;
|
||||
if (!token) throw new Error("No auth token");
|
||||
|
||||
// Load opportunities
|
||||
|
|
|
|||
Loading…
Reference in a new issue