supabase_auth 2.5.0__tar.gz → 2.5.1__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.
Files changed (27) hide show
  1. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/PKG-INFO +1 -1
  2. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/pyproject.toml +4 -4
  3. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/__init__.py +1 -1
  4. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/_async/gotrue_client.py +5 -1
  5. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/_sync/gotrue_client.py +5 -1
  6. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/types.py +2 -0
  7. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/LICENSE +0 -0
  8. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/README.md +0 -0
  9. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/_async/__init__.py +0 -0
  10. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/_async/gotrue_admin_api.py +0 -0
  11. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/_async/gotrue_admin_mfa_api.py +0 -0
  12. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/_async/gotrue_base_api.py +0 -0
  13. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/_async/gotrue_mfa_api.py +0 -0
  14. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/_async/storage.py +0 -0
  15. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/_sync/__init__.py +0 -0
  16. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/_sync/api.py +0 -0
  17. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/_sync/client.py +0 -0
  18. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/_sync/gotrue_admin_api.py +0 -0
  19. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/_sync/gotrue_admin_mfa_api.py +0 -0
  20. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/_sync/gotrue_base_api.py +0 -0
  21. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/_sync/gotrue_mfa_api.py +0 -0
  22. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/_sync/storage.py +0 -0
  23. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/constants.py +0 -0
  24. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/errors.py +0 -0
  25. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/helpers.py +0 -0
  26. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/http_clients.py +0 -0
  27. {supabase_auth-2.5.0 → supabase_auth-2.5.1}/supabase_auth/timer.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: supabase_auth
3
- Version: 2.5.0
3
+ Version: 2.5.1
4
4
  Summary: Python Client Library for Supabase Auth
5
5
  Home-page: https://github.com/supabase-community/auth-py
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "supabase_auth"
3
- version = "2.5.0"
3
+ version = "2.5.1"
4
4
  description = "Python Client Library for Supabase Auth"
5
5
  authors = ["Joel Lee <joel@joellee.org>"]
6
6
  homepage = "https://github.com/supabase-community/auth-py"
@@ -20,7 +20,7 @@ httpx = ">=0.23,<0.28"
20
20
  pydantic = ">=1.10,<3"
21
21
 
22
22
  [tool.poetry.dev-dependencies]
23
- pytest = "^8.2.1"
23
+ pytest = "^8.2.2"
24
24
  flake8 = "^5.0.4"
25
25
  black = "^24.4.2"
26
26
  isort = "^5.12.0"
@@ -28,9 +28,9 @@ pre-commit = "^3.4.0"
28
28
  pytest-cov = "^5.0.0"
29
29
  pytest-depends = "^1.0.1"
30
30
  pytest-asyncio = "^0.23.7"
31
- Faker = "^25.4.0"
31
+ Faker = "^25.8.0"
32
32
  unasync-cli = "^0.0.9"
33
- python-semantic-release = "^9.8.1"
33
+ python-semantic-release = "^9.8.3"
34
34
 
35
35
  [tool.poetry.group.dev.dependencies]
36
36
  pygithub = ">=1.57,<3.0"
@@ -1,6 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
- __version__ = "2.5.0"
3
+ __version__ = "2.5.1"
4
4
 
5
5
  from ._async.gotrue_admin_api import AsyncGoTrueAdminAPI # type: ignore # noqa: F401
6
6
  from ._async.gotrue_client import AsyncGoTrueClient # type: ignore # noqa: F401
@@ -191,8 +191,9 @@ class AsyncGoTrueClient(AsyncGoTrueBaseAPI):
191
191
  phone = credentials.get("phone")
192
192
  password = credentials.get("password")
193
193
  options = credentials.get("options", {})
194
- redirect_to = options.get("redirect_to")
194
+ redirect_to = options.get("redirect_to") or options.get("email_redirect_to")
195
195
  data = options.get("data") or {}
196
+ channel = options.get("channel", "sms")
196
197
  captcha_token = options.get("captcha_token")
197
198
  if email:
198
199
  response = await self._request(
@@ -217,6 +218,7 @@ class AsyncGoTrueClient(AsyncGoTrueBaseAPI):
217
218
  "phone": phone,
218
219
  "password": password,
219
220
  "data": data,
221
+ "channel": channel,
220
222
  "gotrue_meta_security": {
221
223
  "captcha_token": captcha_token,
222
224
  },
@@ -419,6 +421,7 @@ class AsyncGoTrueClient(AsyncGoTrueBaseAPI):
419
421
  email_redirect_to = options.get("email_redirect_to")
420
422
  should_create_user = options.get("create_user", True)
421
423
  data = options.get("data")
424
+ channel = options.get("channel", "sms")
422
425
  captcha_token = options.get("captcha_token")
423
426
  if email:
424
427
  return await self._request(
@@ -443,6 +446,7 @@ class AsyncGoTrueClient(AsyncGoTrueBaseAPI):
443
446
  "phone": phone,
444
447
  "data": data,
445
448
  "create_user": should_create_user,
449
+ "channel": channel,
446
450
  "gotrue_meta_security": {
447
451
  "captcha_token": captcha_token,
448
452
  },
@@ -191,8 +191,9 @@ class SyncGoTrueClient(SyncGoTrueBaseAPI):
191
191
  phone = credentials.get("phone")
192
192
  password = credentials.get("password")
193
193
  options = credentials.get("options", {})
194
- redirect_to = options.get("redirect_to")
194
+ redirect_to = options.get("redirect_to") or options.get("email_redirect_to")
195
195
  data = options.get("data") or {}
196
+ channel = options.get("channel", "sms")
196
197
  captcha_token = options.get("captcha_token")
197
198
  if email:
198
199
  response = self._request(
@@ -217,6 +218,7 @@ class SyncGoTrueClient(SyncGoTrueBaseAPI):
217
218
  "phone": phone,
218
219
  "password": password,
219
220
  "data": data,
221
+ "channel": channel,
220
222
  "gotrue_meta_security": {
221
223
  "captcha_token": captcha_token,
222
224
  },
@@ -419,6 +421,7 @@ class SyncGoTrueClient(SyncGoTrueBaseAPI):
419
421
  email_redirect_to = options.get("email_redirect_to")
420
422
  should_create_user = options.get("create_user", True)
421
423
  data = options.get("data")
424
+ channel = options.get("channel", "sms")
422
425
  captcha_token = options.get("captcha_token")
423
426
  if email:
424
427
  return self._request(
@@ -443,6 +446,7 @@ class SyncGoTrueClient(SyncGoTrueBaseAPI):
443
446
  "phone": phone,
444
447
  "data": data,
445
448
  "create_user": should_create_user,
449
+ "channel": channel,
446
450
  "gotrue_meta_security": {
447
451
  "captcha_token": captcha_token,
448
452
  },
@@ -260,6 +260,7 @@ class SignUpWithEmailAndPasswordCredentials(TypedDict):
260
260
  class SignUpWithPhoneAndPasswordCredentialsOptions(TypedDict):
261
261
  data: NotRequired[Any]
262
262
  captcha_token: NotRequired[str]
263
+ channel: NotRequired[Literal["sms", "whatsapp"]]
263
264
 
264
265
 
265
266
  class SignUpWithPhoneAndPasswordCredentials(TypedDict):
@@ -313,6 +314,7 @@ class SignInWithPhoneAndPasswordlessCredentialsOptions(TypedDict):
313
314
  should_create_user: NotRequired[bool]
314
315
  data: NotRequired[Any]
315
316
  captcha_token: NotRequired[str]
317
+ channel: NotRequired[Literal["sms", "whatsapp"]]
316
318
 
317
319
 
318
320
  class SignInWithPhoneAndPasswordlessCredentials(TypedDict):
File without changes
File without changes