completionId: cgen-4d207c6f0b384343941be2674849952c
cgen-4d207c6f0b384343941be2674849952c
This commit is contained in:
parent
c1f4d36bb7
commit
1198e2060a
1 changed files with 2 additions and 1 deletions
|
|
@ -51,7 +51,8 @@ export default function NexusDashboard() {
|
|||
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 creator profile
|
||||
|
|
|
|||
Loading…
Reference in a new issue