square-authentication 4.2.1__py3-none-any.whl → 4.4.0__py3-none-any.whl

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.
@@ -20,6 +20,7 @@ app = FastAPI()
20
20
 
21
21
  app.add_middleware(
22
22
  CORSMiddleware,
23
+ allow_credentials=True,
23
24
  allow_origins=["*"],
24
25
  allow_methods=["*"],
25
26
  allow_headers=["*"],
@@ -69,7 +69,7 @@ async def register_username_v0(
69
69
  local_str_user_id = None
70
70
  local_str_access_token = None
71
71
  local_str_refresh_token = None
72
-
72
+ local_object_refresh_token_expiry_time = None
73
73
  username = username.lower()
74
74
  try:
75
75
  """
@@ -203,6 +203,7 @@ async def register_username_v0(
203
203
  "app_id": app_id,
204
204
  "access_token": local_str_access_token,
205
205
  "refresh_token": local_str_refresh_token,
206
+ "refresh_token_expiry_time": local_object_refresh_token_expiry_time.isoformat(),
206
207
  },
207
208
  },
208
209
  )
@@ -664,6 +665,7 @@ async def login_username_v0(body: LoginUsernameV0):
664
665
  "user_id": local_str_user_id,
665
666
  "access_token": local_str_access_token,
666
667
  "refresh_token": local_str_refresh_token,
668
+ "refresh_token_expiry_time": local_object_refresh_token_expiry_time.isoformat(),
667
669
  }
668
670
  },
669
671
  message=messages["LOGIN_SUCCESSFUL"],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: square-authentication
3
- Version: 4.2.1
3
+ Version: 4.4.0
4
4
  Summary: authentication layer for my personal server.
5
5
  Home-page: https://github.com/thepmsquare/square_authentication
6
6
  Author: thePmSquare
@@ -43,6 +43,15 @@ pip install square_authentication
43
43
 
44
44
  ## changelog
45
45
 
46
+ ### v4.4.0
47
+
48
+ - core
49
+ - add refresh_token_expiry_time in register_username_v0, login_username_v0.
50
+
51
+ ### v4.3.0
52
+
53
+ - set allow_credentials=True.
54
+
46
55
  ### v4.2.1
47
56
 
48
57
  - fix output format in validate_and_get_payload_from_token/v0.
@@ -1,17 +1,17 @@
1
1
  square_authentication/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  square_authentication/configuration.py,sha256=i0uNtNSQd-n1rBxFM6jsIz1Wy3d090RcdTViSqHKc7Y,2973
3
- square_authentication/main.py,sha256=JK9KBmN73KL8EpKrXrjrwwf37bmC4AXrFHtfl2roYwQ,1636
3
+ square_authentication/main.py,sha256=95YgTBOuh2paWg3W0g0CvrQCeyTr0Q89fL14GmUxv2g,1664
4
4
  square_authentication/messages.py,sha256=BA9KC0vW9UD1ZXT4VneVqVNLlgdbMdsAwAgxhJISLf4,1175
5
5
  square_authentication/data/config.ini,sha256=_740RvKpL5W2bUDGwZ7ePwuP-mAasr5cXXB81yq_Jv8,906
6
6
  square_authentication/pydantic_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  square_authentication/pydantic_models/core.py,sha256=D4Q76oBl9wTDe7DMq96Bryk6a0GpuZStoU4w_KXkAd0,548
8
8
  square_authentication/routes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- square_authentication/routes/core.py,sha256=-ItaSNQqz_M5H8OdOaMuivyxg2g5eVsnpzq-v0tXSFo,48485
9
+ square_authentication/routes/core.py,sha256=F-FO0EJAhZenKrJxd4NeIvGazC8t_3wKX2T8bZwiza0,48736
10
10
  square_authentication/routes/utility.py,sha256=ocLWj39JbKVOxgyTsM0xBUgTpHFmKIvvaT3UnjFvuOY,1783
11
11
  square_authentication/utils/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
12
12
  square_authentication/utils/encryption.py,sha256=T6BShoUr_xeGpbfPgTK-GxTlXPwcjwU4c4KW7KPzrF8,1865
13
13
  square_authentication/utils/token.py,sha256=Y_arg5LegX-aprMj9YweUK8jjNZLGDjLUGgxbUA12w4,560
14
- square_authentication-4.2.1.dist-info/METADATA,sha256=NjJwEkINCqy_h2MuVT2gSN1E5msn10I8PiG_dvdus4w,3130
15
- square_authentication-4.2.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
16
- square_authentication-4.2.1.dist-info/top_level.txt,sha256=wDssVJIl9KIEJPj5rR3rv4uRI7yCndMBrvHd_6BGXQA,22
17
- square_authentication-4.2.1.dist-info/RECORD,,
14
+ square_authentication-4.4.0.dist-info/METADATA,sha256=iE7uWMEHzjINv1hcPCwgDzhSDUz3ZbonKHu5Kw123co,3273
15
+ square_authentication-4.4.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
16
+ square_authentication-4.4.0.dist-info/top_level.txt,sha256=wDssVJIl9KIEJPj5rR3rv4uRI7yCndMBrvHd_6BGXQA,22
17
+ square_authentication-4.4.0.dist-info/RECORD,,