Skip to content

Commit 6226426

Browse files
authored
fix: move redirect_to into metadata for SSO authentication (#671)
1 parent 2643bd7 commit 6226426

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

supabase_auth/_async/gotrue_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,8 @@ async def sign_in_with_sso(self, credentials: SignInWithSSOCredentials):
370370
"gotrue_meta_security": {
371371
"captcha_token": captcha_token,
372372
},
373+
"redirect_to": redirect_to,
373374
},
374-
redirect_to=redirect_to,
375375
xform=parse_sso_response,
376376
)
377377
if provider_id:
@@ -384,8 +384,8 @@ async def sign_in_with_sso(self, credentials: SignInWithSSOCredentials):
384384
"gotrue_meta_security": {
385385
"captcha_token": captcha_token,
386386
},
387+
"redirect_to": redirect_to,
387388
},
388-
redirect_to=redirect_to,
389389
xform=parse_sso_response,
390390
)
391391
raise AuthInvalidCredentialsError(

supabase_auth/_sync/gotrue_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,8 @@ def sign_in_with_sso(self, credentials: SignInWithSSOCredentials):
370370
"gotrue_meta_security": {
371371
"captcha_token": captcha_token,
372372
},
373+
"redirect_to": redirect_to,
373374
},
374-
redirect_to=redirect_to,
375375
xform=parse_sso_response,
376376
)
377377
if provider_id:
@@ -384,8 +384,8 @@ def sign_in_with_sso(self, credentials: SignInWithSSOCredentials):
384384
"gotrue_meta_security": {
385385
"captcha_token": captcha_token,
386386
},
387+
"redirect_to": redirect_to,
387388
},
388-
redirect_to=redirect_to,
389389
xform=parse_sso_response,
390390
)
391391
raise AuthInvalidCredentialsError(

0 commit comments

Comments
 (0)