supabase_auth 2.12.2__tar.gz → 2.12.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.12.2 → supabase_auth-2.12.3}/PKG-INFO +1 -2
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/pyproject.toml +26 -8
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/__init__.py +8 -4
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/_async/gotrue_client.py +5 -1
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/_sync/gotrue_client.py +5 -1
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/types.py +5 -0
- supabase_auth-2.12.3/supabase_auth/version.py +1 -0
- supabase_auth-2.12.2/supabase_auth/version.py +0 -1
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/LICENSE +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/README.md +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/_async/__init__.py +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/_async/gotrue_admin_api.py +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/_async/gotrue_admin_mfa_api.py +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/_async/gotrue_base_api.py +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/_async/gotrue_mfa_api.py +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/_async/storage.py +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/_sync/__init__.py +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/_sync/gotrue_admin_api.py +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/_sync/gotrue_admin_mfa_api.py +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/_sync/gotrue_base_api.py +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/_sync/gotrue_mfa_api.py +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/_sync/storage.py +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/constants.py +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/errors.py +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/helpers.py +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/http_clients.py +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/py.typed +0 -0
- {supabase_auth-2.12.2 → supabase_auth-2.12.3}/supabase_auth/timer.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: supabase_auth
|
|
3
|
-
Version: 2.12.
|
|
3
|
+
Version: 2.12.3
|
|
4
4
|
Summary: Python Client Library for Supabase Auth
|
|
5
5
|
Home-page: https://github.com/supabase/auth-py
|
|
6
6
|
License: MIT
|
|
@@ -18,7 +18,6 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
18
18
|
Requires-Dist: httpx[http2] (>=0.26,<0.29)
|
|
19
19
|
Requires-Dist: pydantic (>=1.10,<3)
|
|
20
20
|
Requires-Dist: pyjwt (>=2.10.1,<3.0.0)
|
|
21
|
-
Requires-Dist: pytest-mock (>=3.14.0,<4.0.0)
|
|
22
21
|
Project-URL: Documentation, https://github.com/supabase/auth-py
|
|
23
22
|
Project-URL: Repository, https://github.com/supabase/auth-py
|
|
24
23
|
Description-Content-Type: text/markdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "supabase_auth"
|
|
3
|
-
version = "2.12.
|
|
3
|
+
version = "2.12.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"
|
|
@@ -19,23 +19,41 @@ python = "^3.9"
|
|
|
19
19
|
httpx = { version = ">=0.26,<0.29", extras = ["http2"] }
|
|
20
20
|
pydantic = ">=1.10,<3"
|
|
21
21
|
pyjwt = "^2.10.1"
|
|
22
|
-
pytest-mock = "^3.14.0"
|
|
23
22
|
|
|
24
|
-
[tool.poetry.dev
|
|
23
|
+
[tool.poetry.group.dev.dependencies]
|
|
25
24
|
pytest = "^8.4.1"
|
|
26
|
-
|
|
27
|
-
black = "^25.1.0"
|
|
28
|
-
isort = "^6.0.1"
|
|
25
|
+
pytest-mock = "^3.14.0"
|
|
29
26
|
pre-commit = "^4.2.0"
|
|
30
27
|
pytest-cov = "^6.2.1"
|
|
31
28
|
pytest-depends = "^1.0.1"
|
|
32
29
|
pytest-asyncio = "^1.0.0"
|
|
33
30
|
Faker = "^37.4.0"
|
|
34
31
|
unasync-cli = { git = "https://github.com/supabase-community/unasync-cli.git", branch = "main" }
|
|
35
|
-
|
|
36
|
-
[tool.poetry.group.dev.dependencies]
|
|
37
32
|
pygithub = ">=1.57,<3.0"
|
|
38
33
|
respx = ">=0.20.2,<0.23.0"
|
|
34
|
+
ruff = "^0.12.1"
|
|
35
|
+
|
|
36
|
+
[tool.ruff.lint]
|
|
37
|
+
select = [
|
|
38
|
+
# pycodestyle
|
|
39
|
+
"E",
|
|
40
|
+
# Pyflakes
|
|
41
|
+
"F",
|
|
42
|
+
# pyupgrade
|
|
43
|
+
"UP",
|
|
44
|
+
# flake8-bugbear
|
|
45
|
+
# "B",
|
|
46
|
+
# flake8-simplify
|
|
47
|
+
# "SIM",
|
|
48
|
+
# isort
|
|
49
|
+
"I",
|
|
50
|
+
]
|
|
51
|
+
ignore = ["F401", "F403", "F841", "E712", "E501", "E402", "E722", "E731", "UP006", "UP035"]
|
|
52
|
+
# isort.required-imports = ["from __future__ import annotations"]
|
|
53
|
+
|
|
54
|
+
[tool.ruff.lint.pyupgrade]
|
|
55
|
+
# Preserve types, even if a file imports `from __future__ import annotations`.
|
|
56
|
+
keep-runtime-typing = true
|
|
39
57
|
|
|
40
58
|
[build-system]
|
|
41
59
|
requires = ["poetry-core>=1.0.0"]
|
|
@@ -2,11 +2,15 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from ._async.gotrue_admin_api import AsyncGoTrueAdminAPI # type: ignore # noqa: F401
|
|
4
4
|
from ._async.gotrue_client import AsyncGoTrueClient # type: ignore # noqa: F401
|
|
5
|
-
from ._async.storage import
|
|
6
|
-
|
|
5
|
+
from ._async.storage import (
|
|
6
|
+
AsyncMemoryStorage, # type: ignore # noqa: F401
|
|
7
|
+
AsyncSupportedStorage, # type: ignore # noqa: F401
|
|
8
|
+
)
|
|
7
9
|
from ._sync.gotrue_admin_api import SyncGoTrueAdminAPI # type: ignore # noqa: F401
|
|
8
10
|
from ._sync.gotrue_client import SyncGoTrueClient # type: ignore # noqa: F401
|
|
9
|
-
from ._sync.storage import
|
|
10
|
-
|
|
11
|
+
from ._sync.storage import (
|
|
12
|
+
SyncMemoryStorage, # type: ignore # noqa: F401
|
|
13
|
+
SyncSupportedStorage, # type: ignore # noqa: F401
|
|
14
|
+
)
|
|
11
15
|
from .types import * # type: ignore # noqa: F401, F403
|
|
12
16
|
from .version import __version__
|
|
@@ -79,6 +79,7 @@ from ..types import (
|
|
|
79
79
|
SignOutOptions,
|
|
80
80
|
SignUpWithPasswordCredentials,
|
|
81
81
|
Subscription,
|
|
82
|
+
UpdateUserOptions,
|
|
82
83
|
UserAttributes,
|
|
83
84
|
UserIdentity,
|
|
84
85
|
UserResponse,
|
|
@@ -647,7 +648,9 @@ class AsyncGoTrueClient(AsyncGoTrueBaseAPI):
|
|
|
647
648
|
return None
|
|
648
649
|
return await self._request("GET", "user", jwt=jwt, xform=parse_user_response)
|
|
649
650
|
|
|
650
|
-
async def update_user(
|
|
651
|
+
async def update_user(
|
|
652
|
+
self, attributes: UserAttributes, options: UpdateUserOptions = {}
|
|
653
|
+
) -> UserResponse:
|
|
651
654
|
"""
|
|
652
655
|
Updates user data, if there is a logged in user.
|
|
653
656
|
"""
|
|
@@ -658,6 +661,7 @@ class AsyncGoTrueClient(AsyncGoTrueBaseAPI):
|
|
|
658
661
|
"PUT",
|
|
659
662
|
"user",
|
|
660
663
|
body=attributes,
|
|
664
|
+
redirect_to=options.get("email_redirect_to"),
|
|
661
665
|
jwt=session.access_token,
|
|
662
666
|
xform=parse_user_response,
|
|
663
667
|
)
|
|
@@ -79,6 +79,7 @@ from ..types import (
|
|
|
79
79
|
SignOutOptions,
|
|
80
80
|
SignUpWithPasswordCredentials,
|
|
81
81
|
Subscription,
|
|
82
|
+
UpdateUserOptions,
|
|
82
83
|
UserAttributes,
|
|
83
84
|
UserIdentity,
|
|
84
85
|
UserResponse,
|
|
@@ -645,7 +646,9 @@ class SyncGoTrueClient(SyncGoTrueBaseAPI):
|
|
|
645
646
|
return None
|
|
646
647
|
return self._request("GET", "user", jwt=jwt, xform=parse_user_response)
|
|
647
648
|
|
|
648
|
-
def update_user(
|
|
649
|
+
def update_user(
|
|
650
|
+
self, attributes: UserAttributes, options: UpdateUserOptions = {}
|
|
651
|
+
) -> UserResponse:
|
|
649
652
|
"""
|
|
650
653
|
Updates user data, if there is a logged in user.
|
|
651
654
|
"""
|
|
@@ -656,6 +659,7 @@ class SyncGoTrueClient(SyncGoTrueBaseAPI):
|
|
|
656
659
|
"PUT",
|
|
657
660
|
"user",
|
|
658
661
|
body=attributes,
|
|
662
|
+
redirect_to=options.get("email_redirect_to"),
|
|
659
663
|
jwt=session.access_token,
|
|
660
664
|
xform=parse_user_response,
|
|
661
665
|
)
|
|
@@ -87,6 +87,10 @@ class Options(TypedDict):
|
|
|
87
87
|
captcha_token: NotRequired[str]
|
|
88
88
|
|
|
89
89
|
|
|
90
|
+
class UpdateUserOptions(TypedDict):
|
|
91
|
+
email_redirect_to: NotRequired[str]
|
|
92
|
+
|
|
93
|
+
|
|
90
94
|
class InviteUserByEmailOptions(TypedDict):
|
|
91
95
|
redirect_to: NotRequired[str]
|
|
92
96
|
data: NotRequired[Any]
|
|
@@ -229,6 +233,7 @@ class UserAttributes(TypedDict):
|
|
|
229
233
|
phone: NotRequired[str]
|
|
230
234
|
password: NotRequired[str]
|
|
231
235
|
data: NotRequired[Any]
|
|
236
|
+
nonce: NotRequired[str]
|
|
232
237
|
|
|
233
238
|
|
|
234
239
|
class AdminUserAttributes(UserAttributes, TypedDict):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.12.3" # {x-release-please-version}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.12.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
|