supabase_auth 2.28.0__tar.gz → 2.28.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 (28) hide show
  1. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/PKG-INFO +1 -1
  2. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/pyproject.toml +1 -1
  3. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/_async/gotrue_client.py +2 -3
  4. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/_sync/gotrue_client.py +2 -3
  5. supabase_auth-2.28.1/src/supabase_auth/version.py +1 -0
  6. supabase_auth-2.28.0/src/supabase_auth/version.py +0 -1
  7. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/README.md +0 -0
  8. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/__init__.py +0 -0
  9. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/_async/__init__.py +0 -0
  10. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/_async/gotrue_admin_api.py +0 -0
  11. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/_async/gotrue_admin_mfa_api.py +0 -0
  12. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/_async/gotrue_admin_oauth_api.py +0 -0
  13. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/_async/gotrue_base_api.py +0 -0
  14. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/_async/gotrue_mfa_api.py +0 -0
  15. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/_async/storage.py +0 -0
  16. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/_sync/__init__.py +0 -0
  17. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/_sync/gotrue_admin_api.py +0 -0
  18. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/_sync/gotrue_admin_mfa_api.py +0 -0
  19. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/_sync/gotrue_admin_oauth_api.py +0 -0
  20. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/_sync/gotrue_base_api.py +0 -0
  21. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/_sync/gotrue_mfa_api.py +0 -0
  22. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/_sync/storage.py +0 -0
  23. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/constants.py +0 -0
  24. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/errors.py +0 -0
  25. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/helpers.py +0 -0
  26. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/py.typed +0 -0
  27. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/timer.py +0 -0
  28. {supabase_auth-2.28.0 → supabase_auth-2.28.1}/src/supabase_auth/types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: supabase-auth
3
- Version: 2.28.0
3
+ Version: 2.28.1
4
4
  Summary: Python Client Library for Supabase Auth
5
5
  Author: Joel Lee
6
6
  Author-email: Joel Lee <joel@joellee.org>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "supabase_auth"
3
- version = "2.28.0" # {x-release-please-version}
3
+ version = "2.28.1" # {x-release-please-version}
4
4
  description = "Python Client Library for Supabase Auth"
5
5
  authors = [
6
6
  {name = "Joel Lee", email = "joel@joellee.org" }
@@ -17,7 +17,6 @@ from ..constants import (
17
17
  EXPIRY_MARGIN,
18
18
  GOTRUE_URL,
19
19
  MAX_RETRIES,
20
- RETRY_INTERVAL,
21
20
  STORAGE_KEY,
22
21
  )
23
22
  from ..errors import (
@@ -1062,7 +1061,7 @@ class AsyncGoTrueClient(AsyncGoTrueBaseAPI):
1062
1061
  if self._refresh_token_timer:
1063
1062
  self._refresh_token_timer.cancel()
1064
1063
  self._refresh_token_timer = Timer(
1065
- (RETRY_INTERVAL ** (self._network_retries * 100)),
1064
+ (200 * (2 ** (self._network_retries - 1))),
1066
1065
  self._recover_and_refresh,
1067
1066
  )
1068
1067
  self._refresh_token_timer.start()
@@ -1127,7 +1126,7 @@ class AsyncGoTrueClient(AsyncGoTrueBaseAPI):
1127
1126
  and self._network_retries < MAX_RETRIES
1128
1127
  ):
1129
1128
  await self._start_auto_refresh_token(
1130
- RETRY_INTERVAL ** (self._network_retries * 100)
1129
+ 200 * (2 ** (self._network_retries - 1))
1131
1130
  )
1132
1131
 
1133
1132
  self._refresh_token_timer = Timer(value, refresh_token_function)
@@ -17,7 +17,6 @@ from ..constants import (
17
17
  EXPIRY_MARGIN,
18
18
  GOTRUE_URL,
19
19
  MAX_RETRIES,
20
- RETRY_INTERVAL,
21
20
  STORAGE_KEY,
22
21
  )
23
22
  from ..errors import (
@@ -1056,7 +1055,7 @@ class SyncGoTrueClient(SyncGoTrueBaseAPI):
1056
1055
  if self._refresh_token_timer:
1057
1056
  self._refresh_token_timer.cancel()
1058
1057
  self._refresh_token_timer = Timer(
1059
- (RETRY_INTERVAL ** (self._network_retries * 100)),
1058
+ (200 * (2 ** (self._network_retries - 1))),
1060
1059
  self._recover_and_refresh,
1061
1060
  )
1062
1061
  self._refresh_token_timer.start()
@@ -1121,7 +1120,7 @@ class SyncGoTrueClient(SyncGoTrueBaseAPI):
1121
1120
  and self._network_retries < MAX_RETRIES
1122
1121
  ):
1123
1122
  self._start_auto_refresh_token(
1124
- RETRY_INTERVAL ** (self._network_retries * 100)
1123
+ 200 * (2 ** (self._network_retries - 1))
1125
1124
  )
1126
1125
 
1127
1126
  self._refresh_token_timer = Timer(value, refresh_token_function)
@@ -0,0 +1 @@
1
+ __version__ = "2.28.1" # {x-release-please-version}
@@ -1 +0,0 @@
1
- __version__ = "2.28.0" # {x-release-please-version}
File without changes