Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 97c4713

Browse files
committed
formatting
1 parent face521 commit 97c4713

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

gotrue/_async/gotrue_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
model_dump,
3131
model_dump_json,
3232
model_validate,
33-
parse_auth_response,
3433
parse_auth_otp_response,
34+
parse_auth_response,
3535
parse_sso_response,
3636
parse_user_response,
3737
)
@@ -47,8 +47,8 @@
4747
AuthMFAListFactorsResponse,
4848
AuthMFAUnenrollResponse,
4949
AuthMFAVerifyResponse,
50-
AuthResponse,
5150
AuthOtpResponse,
51+
AuthResponse,
5252
CodeExchangeParams,
5353
DecodedJWTDict,
5454
IdentitiesResponse,

gotrue/_sync/gotrue_client.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
model_dump,
3131
model_dump_json,
3232
model_validate,
33-
parse_auth_response,
3433
parse_auth_otp_response,
34+
parse_auth_response,
3535
parse_sso_response,
3636
parse_user_response,
3737
)
@@ -47,8 +47,8 @@
4747
AuthMFAListFactorsResponse,
4848
AuthMFAUnenrollResponse,
4949
AuthMFAVerifyResponse,
50-
AuthResponse,
5150
AuthOtpResponse,
51+
AuthResponse,
5252
CodeExchangeParams,
5353
DecodedJWTDict,
5454
IdentitiesResponse,
@@ -552,9 +552,7 @@ def set_session(self, access_token: str, refresh_token: str) -> AuthResponse:
552552
self._notify_all_subscribers("TOKEN_REFRESHED", session)
553553
return AuthResponse(session=session, user=response.user)
554554

555-
def refresh_session(
556-
self, refresh_token: Union[str, None] = None
557-
) -> AuthResponse:
555+
def refresh_session(self, refresh_token: Union[str, None] = None) -> AuthResponse:
558556
"""
559557
Returns a new session, regardless of expiry status.
560558
@@ -945,9 +943,7 @@ def _get_url_for_provider(
945943
if self._flow_type == "pkce":
946944
code_verifier = generate_pkce_verifier()
947945
code_challenge = generate_pkce_challenge(code_verifier)
948-
self._storage.set_item(
949-
f"{self._storage_key}-code-verifier", code_verifier
950-
)
946+
self._storage.set_item(f"{self._storage_key}-code-verifier", code_verifier)
951947
code_challenge_method = (
952948
"plain" if code_verifier == code_challenge else "s256"
953949
)

gotrue/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313

1414
from .errors import AuthApiError, AuthError, AuthRetryableError, AuthUnknownError
1515
from .types import (
16-
AuthResponse,
1716
AuthOtpResponse,
17+
AuthResponse,
1818
GenerateLinkProperties,
1919
GenerateLinkResponse,
20-
SSOResponse,
2120
Session,
21+
SSOResponse,
2222
User,
2323
UserResponse,
2424
)

0 commit comments

Comments
 (0)