supabase_auth 2.5.2__tar.gz → 2.5.4__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.2 → supabase_auth-2.5.4}/PKG-INFO +1 -1
  2. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/pyproject.toml +1 -1
  3. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/__init__.py +1 -1
  4. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/_async/gotrue_client.py +4 -4
  5. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/_sync/gotrue_client.py +1 -1
  6. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/LICENSE +0 -0
  7. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/README.md +0 -0
  8. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/_async/__init__.py +0 -0
  9. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/_async/gotrue_admin_api.py +0 -0
  10. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/_async/gotrue_admin_mfa_api.py +0 -0
  11. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/_async/gotrue_base_api.py +0 -0
  12. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/_async/gotrue_mfa_api.py +0 -0
  13. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/_async/storage.py +0 -0
  14. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/_sync/__init__.py +0 -0
  15. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/_sync/api.py +0 -0
  16. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/_sync/client.py +0 -0
  17. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/_sync/gotrue_admin_api.py +0 -0
  18. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/_sync/gotrue_admin_mfa_api.py +0 -0
  19. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/_sync/gotrue_base_api.py +0 -0
  20. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/_sync/gotrue_mfa_api.py +0 -0
  21. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/_sync/storage.py +0 -0
  22. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/constants.py +0 -0
  23. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/errors.py +0 -0
  24. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/helpers.py +0 -0
  25. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/http_clients.py +0 -0
  26. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/timer.py +0 -0
  27. {supabase_auth-2.5.2 → supabase_auth-2.5.4}/supabase_auth/types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: supabase_auth
3
- Version: 2.5.2
3
+ Version: 2.5.4
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.2"
3
+ version = "2.5.4"
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"
@@ -1,6 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
- __version__ = "2.5.2"
3
+ __version__ = "2.5.4"
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
@@ -159,13 +159,13 @@ class AsyncGoTrueClient(AsyncGoTrueBaseAPI):
159
159
  """
160
160
  Creates a new anonymous user.
161
161
  """
162
- self._remove_session()
162
+ await self._remove_session()
163
163
  if credentials is None:
164
164
  credentials = {"options": {}}
165
165
  options = credentials.get("options", {})
166
166
  data = options.get("data") or {}
167
167
  captcha_token = options.get("captcha_token")
168
- response = self._request(
168
+ response = await self._request(
169
169
  "POST",
170
170
  "signup",
171
171
  body={
@@ -177,7 +177,7 @@ class AsyncGoTrueClient(AsyncGoTrueBaseAPI):
177
177
  xform=parse_auth_response,
178
178
  )
179
179
  if response.session:
180
- self._save_session(response.session)
180
+ await self._save_session(response.session)
181
181
  self._notify_all_subscribers("SIGNED_IN", response.session)
182
182
  return response
183
183
 
@@ -442,7 +442,7 @@ class AsyncGoTrueClient(AsyncGoTrueBaseAPI):
442
442
  phone = credentials.get("phone")
443
443
  options = credentials.get("options", {})
444
444
  email_redirect_to = options.get("email_redirect_to")
445
- should_create_user = options.get("create_user", True)
445
+ should_create_user = options.get("should_create_user", True)
446
446
  data = options.get("data")
447
447
  channel = options.get("channel", "sms")
448
448
  captcha_token = options.get("captcha_token")
@@ -436,7 +436,7 @@ class SyncGoTrueClient(SyncGoTrueBaseAPI):
436
436
  phone = credentials.get("phone")
437
437
  options = credentials.get("options", {})
438
438
  email_redirect_to = options.get("email_redirect_to")
439
- should_create_user = options.get("create_user", True)
439
+ should_create_user = options.get("should_create_user", True)
440
440
  data = options.get("data")
441
441
  channel = options.get("channel", "sms")
442
442
  captcha_token = options.get("captcha_token")
File without changes
File without changes