OAuth callback should return to login so effect handles routing
cgen-c4029dcaa501418fb84b22c2af88fc9d
This commit is contained in:
parent
a4509d2e90
commit
f34a6495d5
1 changed files with 1 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({
|
||||||
const { data, error } = await supabase.auth.signInWithOAuth({
|
const { data, error } = await supabase.auth.signInWithOAuth({
|
||||||
provider,
|
provider,
|
||||||
options: {
|
options: {
|
||||||
redirectTo: `${window.location.origin}/onboarding`,
|
redirectTo: `${window.location.origin}/login`,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue