supabase_auth 2.11.2__tar.gz → 2.11.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/PKG-INFO +1 -1
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/pyproject.toml +6 -6
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_async/gotrue_client.py +8 -10
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_sync/gotrue_client.py +8 -10
- supabase_auth-2.11.3/supabase_auth/version.py +1 -0
- supabase_auth-2.11.2/supabase_auth/version.py +0 -1
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/LICENSE +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/README.md +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/__init__.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_async/__init__.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_async/gotrue_admin_api.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_async/gotrue_admin_mfa_api.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_async/gotrue_base_api.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_async/gotrue_mfa_api.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_async/storage.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_sync/__init__.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_sync/api.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_sync/client.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_sync/gotrue_admin_api.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_sync/gotrue_admin_mfa_api.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_sync/gotrue_base_api.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_sync/gotrue_mfa_api.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_sync/storage.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/constants.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/errors.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/helpers.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/http_clients.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/timer.py +0 -0
- {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "supabase_auth"
|
|
3
|
-
version = "2.11.
|
|
3
|
+
version = "2.11.3" # {x-release-please-version}
|
|
4
4
|
description = "Python Client Library for Supabase Auth"
|
|
5
5
|
authors = ["Joel Lee <joel@joellee.org>"]
|
|
6
6
|
homepage = "https://github.com/supabase/auth-py"
|
|
@@ -22,13 +22,13 @@ pydantic = ">=1.10,<3"
|
|
|
22
22
|
[tool.poetry.dev-dependencies]
|
|
23
23
|
pytest = "^8.3.4"
|
|
24
24
|
flake8 = "^7.1.1"
|
|
25
|
-
black = "^
|
|
26
|
-
isort = "^
|
|
27
|
-
pre-commit = "^4.0
|
|
25
|
+
black = "^25.1.0"
|
|
26
|
+
isort = "^6.0.0"
|
|
27
|
+
pre-commit = "^4.1.0"
|
|
28
28
|
pytest-cov = "^6.0.0"
|
|
29
29
|
pytest-depends = "^1.0.1"
|
|
30
|
-
pytest-asyncio = "^0.25.
|
|
31
|
-
Faker = "^
|
|
30
|
+
pytest-asyncio = "^0.25.3"
|
|
31
|
+
Faker = "^35.0.0"
|
|
32
32
|
unasync-cli = "^0.0.9"
|
|
33
33
|
|
|
34
34
|
[tool.poetry.group.dev.dependencies]
|
|
@@ -370,8 +370,8 @@ class AsyncGoTrueClient(AsyncGoTrueBaseAPI):
|
|
|
370
370
|
"gotrue_meta_security": {
|
|
371
371
|
"captcha_token": captcha_token,
|
|
372
372
|
},
|
|
373
|
+
"redirect_to": redirect_to,
|
|
373
374
|
},
|
|
374
|
-
redirect_to=redirect_to,
|
|
375
375
|
xform=parse_sso_response,
|
|
376
376
|
)
|
|
377
377
|
if provider_id:
|
|
@@ -384,8 +384,8 @@ class AsyncGoTrueClient(AsyncGoTrueBaseAPI):
|
|
|
384
384
|
"gotrue_meta_security": {
|
|
385
385
|
"captcha_token": captcha_token,
|
|
386
386
|
},
|
|
387
|
+
"redirect_to": redirect_to,
|
|
387
388
|
},
|
|
388
|
-
redirect_to=redirect_to,
|
|
389
389
|
xform=parse_sso_response,
|
|
390
390
|
)
|
|
391
391
|
raise AuthInvalidCredentialsError(
|
|
@@ -721,12 +721,10 @@ class AsyncGoTrueClient(AsyncGoTrueBaseAPI):
|
|
|
721
721
|
|
|
722
722
|
async def sign_out(self, options: SignOutOptions = {"scope": "global"}) -> None:
|
|
723
723
|
"""
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
then trigger a `"SIGNED_OUT"` event.
|
|
724
|
+
`sign_out` will remove the logged in user from the
|
|
725
|
+
current session and log them out - removing all items from storage and then trigger a `"SIGNED_OUT"` event.
|
|
727
726
|
|
|
728
|
-
For
|
|
729
|
-
passing a user's JWT through to `api.sign_out`.
|
|
727
|
+
For advanced use cases, you can revoke all refresh tokens for a user by passing a user's JWT through to `admin.sign_out`.
|
|
730
728
|
|
|
731
729
|
There is no way to revoke a user's access token jwt until it expires.
|
|
732
730
|
It is recommended to set a shorter expiry on the jwt for this reason.
|
|
@@ -737,9 +735,9 @@ class AsyncGoTrueClient(AsyncGoTrueBaseAPI):
|
|
|
737
735
|
if access_token:
|
|
738
736
|
await self.admin.sign_out(access_token, options["scope"])
|
|
739
737
|
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
738
|
+
if options["scope"] != "others":
|
|
739
|
+
await self._remove_session()
|
|
740
|
+
self._notify_all_subscribers("SIGNED_OUT", None)
|
|
743
741
|
|
|
744
742
|
def on_auth_state_change(
|
|
745
743
|
self,
|
|
@@ -370,8 +370,8 @@ class SyncGoTrueClient(SyncGoTrueBaseAPI):
|
|
|
370
370
|
"gotrue_meta_security": {
|
|
371
371
|
"captcha_token": captcha_token,
|
|
372
372
|
},
|
|
373
|
+
"redirect_to": redirect_to,
|
|
373
374
|
},
|
|
374
|
-
redirect_to=redirect_to,
|
|
375
375
|
xform=parse_sso_response,
|
|
376
376
|
)
|
|
377
377
|
if provider_id:
|
|
@@ -384,8 +384,8 @@ class SyncGoTrueClient(SyncGoTrueBaseAPI):
|
|
|
384
384
|
"gotrue_meta_security": {
|
|
385
385
|
"captcha_token": captcha_token,
|
|
386
386
|
},
|
|
387
|
+
"redirect_to": redirect_to,
|
|
387
388
|
},
|
|
388
|
-
redirect_to=redirect_to,
|
|
389
389
|
xform=parse_sso_response,
|
|
390
390
|
)
|
|
391
391
|
raise AuthInvalidCredentialsError(
|
|
@@ -717,12 +717,10 @@ class SyncGoTrueClient(SyncGoTrueBaseAPI):
|
|
|
717
717
|
|
|
718
718
|
def sign_out(self, options: SignOutOptions = {"scope": "global"}) -> None:
|
|
719
719
|
"""
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
then trigger a `"SIGNED_OUT"` event.
|
|
720
|
+
`sign_out` will remove the logged in user from the
|
|
721
|
+
current session and log them out - removing all items from storage and then trigger a `"SIGNED_OUT"` event.
|
|
723
722
|
|
|
724
|
-
For
|
|
725
|
-
passing a user's JWT through to `api.sign_out`.
|
|
723
|
+
For advanced use cases, you can revoke all refresh tokens for a user by passing a user's JWT through to `admin.sign_out`.
|
|
726
724
|
|
|
727
725
|
There is no way to revoke a user's access token jwt until it expires.
|
|
728
726
|
It is recommended to set a shorter expiry on the jwt for this reason.
|
|
@@ -733,9 +731,9 @@ class SyncGoTrueClient(SyncGoTrueBaseAPI):
|
|
|
733
731
|
if access_token:
|
|
734
732
|
self.admin.sign_out(access_token, options["scope"])
|
|
735
733
|
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
734
|
+
if options["scope"] != "others":
|
|
735
|
+
self._remove_session()
|
|
736
|
+
self._notify_all_subscribers("SIGNED_OUT", None)
|
|
739
737
|
|
|
740
738
|
def on_auth_state_change(
|
|
741
739
|
self,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.11.3" # {x-release-please-version}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.11.2" # {x-release-please-version}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|