Skip to content

Commit

Permalink
fix: move redirect_to into metadata for SSO authentication (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
aheruz authored Jan 30, 2025
1 parent 2643bd7 commit 6226426
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions supabase_auth/_async/gotrue_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ async def sign_in_with_sso(self, credentials: SignInWithSSOCredentials):
"gotrue_meta_security": {
"captcha_token": captcha_token,
},
"redirect_to": redirect_to,
},
redirect_to=redirect_to,
xform=parse_sso_response,
)
if provider_id:
Expand All @@ -384,8 +384,8 @@ async def sign_in_with_sso(self, credentials: SignInWithSSOCredentials):
"gotrue_meta_security": {
"captcha_token": captcha_token,
},
"redirect_to": redirect_to,
},
redirect_to=redirect_to,
xform=parse_sso_response,
)
raise AuthInvalidCredentialsError(
Expand Down
4 changes: 2 additions & 2 deletions supabase_auth/_sync/gotrue_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ def sign_in_with_sso(self, credentials: SignInWithSSOCredentials):
"gotrue_meta_security": {
"captcha_token": captcha_token,
},
"redirect_to": redirect_to,
},
redirect_to=redirect_to,
xform=parse_sso_response,
)
if provider_id:
Expand All @@ -384,8 +384,8 @@ def sign_in_with_sso(self, credentials: SignInWithSSOCredentials):
"gotrue_meta_security": {
"captcha_token": captcha_token,
},
"redirect_to": redirect_to,
},
redirect_to=redirect_to,
xform=parse_sso_response,
)
raise AuthInvalidCredentialsError(
Expand Down

0 comments on commit 6226426

Please sign in to comment.