Skip to content

Commit

Permalink
fix: apply sourcery suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
joel authored and joel committed Jan 28, 2024
1 parent 51566e4 commit e225504
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions gotrue/_async/gotrue_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ async def sign_in_with_sso(self, credentials: SignInWithSSOCredentials):
body={
"domain": domain,
"skip_http_redirect": skip_http_redirect,
"gotrue_meta_security": {
"captcha_token": captcha_token,
},
},
redirect_to=redirect_to,
xform=parse_sso_response,
Expand All @@ -297,6 +300,9 @@ async def sign_in_with_sso(self, credentials: SignInWithSSOCredentials):
body={
"provider_id": provider_id,
"skip_http_redirect": skip_http_redirect,
"gotrue_meta_security": {
"captcha_token": captcha_token,
},
},
redirect_to=redirect_to,
xform=parse_sso_response,
Expand Down
6 changes: 6 additions & 0 deletions gotrue/_sync/gotrue_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ def sign_in_with_sso(self, credentials: SignInWithSSOCredentials):
body={
"domain": domain,
"skip_http_redirect": skip_http_redirect,
"gotrue_meta_security": {
"captcha_token": captcha_token,
},
},
redirect_to=redirect_to,
xform=parse_sso_response,
Expand All @@ -297,6 +300,9 @@ def sign_in_with_sso(self, credentials: SignInWithSSOCredentials):
body={
"provider_id": provider_id,
"skip_http_redirect": skip_http_redirect,
"gotrue_meta_security": {
"captcha_token": captcha_token,
},
},
redirect_to=redirect_to,
xform=parse_sso_response,
Expand Down
3 changes: 1 addition & 2 deletions gotrue/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,7 @@ class SignInWithSSOCredentials(TypedDict):

class SignInWithSSOOptions(TypedDict):
redirect_to: NotRequired[str]
captcha_token: NotRequired[str]
skip_http_redirect: NotRequired[str]
skip_http_redirect: NotRequired[bool]


class VerifyOtpParamsOptions(TypedDict):
Expand Down

0 comments on commit e225504

Please sign in to comment.