Skip to content

Commit

Permalink
fix: trying to fix oauth error by commenting out redirectTo option
Browse files Browse the repository at this point in the history
  • Loading branch information
NoorFatima01 committed May 6, 2024
1 parent 81c4015 commit 08fa550
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/login-buttons/google-login-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export default function LoginWithGoogleButton(props: { nextUrl?: string }) {
await supabase.auth.signInWithOAuth({
provider: 'google',
options: {
redirectTo: `${location.origin}/api/auth/callback?next=${
props.nextUrl || ''
}`,
// redirectTo: `https://team-management-weld.vercel.app/}/api/auth/callback?next=${
// props.nextUrl || ''
// }`,
queryParams: {
access_type: 'offline',
prompt: 'consent',
Expand Down

0 comments on commit 08fa550

Please sign in to comment.