completionId: cgen-64841431952c4a2d9b092dbdf3d62cd1
cgen-64841431952c4a2d9b092dbdf3d62cd1
This commit is contained in:
parent
f4a8f31e49
commit
51ed624a2b
1 changed files with 2 additions and 1 deletions
|
|
@ -49,7 +49,8 @@ export default function FoundationDashboard() {
|
|||
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 courses
|
||||
|
|
|
|||
Loading…
Reference in a new issue