Skip to content

Commit

Permalink
auth_token
Browse files Browse the repository at this point in the history
  • Loading branch information
NolanTrem committed Dec 24, 2024
1 parent 4ed54d0 commit f0bfa73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/auth/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ const LoginPage: React.FC = () => {
data: { session },
} = await supabase.auth.getSession();

if (session?.accessToken) {
await loginWithToken(session.accessToken, sanitizedDeploymentUrl);
if (session?.access_token) {
await loginWithToken(session.access_token, sanitizedDeploymentUrl);
setLoginSuccess(true);
} else {
throw new Error('No access token found after OAuth sign-in');
Expand Down

0 comments on commit f0bfa73

Please sign in to comment.