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.
Files changed (29) hide show
  1. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/PKG-INFO +1 -1
  2. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/pyproject.toml +6 -6
  3. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_async/gotrue_client.py +8 -10
  4. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_sync/gotrue_client.py +8 -10
  5. supabase_auth-2.11.3/supabase_auth/version.py +1 -0
  6. supabase_auth-2.11.2/supabase_auth/version.py +0 -1
  7. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/LICENSE +0 -0
  8. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/README.md +0 -0
  9. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/__init__.py +0 -0
  10. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_async/__init__.py +0 -0
  11. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_async/gotrue_admin_api.py +0 -0
  12. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_async/gotrue_admin_mfa_api.py +0 -0
  13. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_async/gotrue_base_api.py +0 -0
  14. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_async/gotrue_mfa_api.py +0 -0
  15. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_async/storage.py +0 -0
  16. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_sync/__init__.py +0 -0
  17. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_sync/api.py +0 -0
  18. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_sync/client.py +0 -0
  19. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_sync/gotrue_admin_api.py +0 -0
  20. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_sync/gotrue_admin_mfa_api.py +0 -0
  21. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_sync/gotrue_base_api.py +0 -0
  22. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_sync/gotrue_mfa_api.py +0 -0
  23. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/_sync/storage.py +0 -0
  24. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/constants.py +0 -0
  25. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/errors.py +0 -0
  26. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/helpers.py +0 -0
  27. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/http_clients.py +0 -0
  28. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/timer.py +0 -0
  29. {supabase_auth-2.11.2 → supabase_auth-2.11.3}/supabase_auth/types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: supabase_auth
3
- Version: 2.11.2
3
+ Version: 2.11.3
4
4
  Summary: Python Client Library for Supabase Auth
5
5
  Home-page: https://github.com/supabase/auth-py
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "supabase_auth"
3
- version = "2.11.2" # {x-release-please-version}
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 = "^24.4.2"
26
- isort = "^5.12.0"
27
- pre-commit = "^4.0.1"
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.2"
31
- Faker = "^33.3.1"
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
- Inside a browser context, `sign_out` will remove the logged in user from the
725
- browser session and log them out - removing all items from localstorage and
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 server-side management, you can revoke all refresh tokens for a user by
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
- if options["scope"] != "others":
741
- await self._remove_session()
742
- self._notify_all_subscribers("SIGNED_OUT", None)
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
- Inside a browser context, `sign_out` will remove the logged in user from the
721
- browser session and log them out - removing all items from localstorage and
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 server-side management, you can revoke all refresh tokens for a user by
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
- if options["scope"] != "others":
737
- self._remove_session()
738
- self._notify_all_subscribers("SIGNED_OUT", None)
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