Skip to content

Commit

Permalink
fix user api key
Browse files Browse the repository at this point in the history
  • Loading branch information
mishushakov committed Sep 17, 2024
1 parent 5faa13b commit b0d58f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export function useAuth (setAuthDialog: (value: boolean) => void, setAuthView: (
}

supabase.auth.getSession().then(({ data: { session } }) => {
getUserAPIKey(session as Session).then(setApiKey)
setSession(session)
})

Expand Down

0 comments on commit b0d58f5

Please sign in to comment.