cycls 0.0.2.52__py3-none-any.whl → 0.0.2.54__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.
cycls/web.py
CHANGED
|
@@ -60,7 +60,7 @@ def web(func, public_path="", prod=False, org=None, api_token=None, header="", i
|
|
|
60
60
|
|
|
61
61
|
class User(BaseModel):
|
|
62
62
|
id: str
|
|
63
|
-
name: str
|
|
63
|
+
name: Optional[str] = None
|
|
64
64
|
email: EmailStr
|
|
65
65
|
org: Optional[str] = None
|
|
66
66
|
plans: List[str] = []
|
|
@@ -86,7 +86,7 @@ def web(func, public_path="", prod=False, org=None, api_token=None, header="", i
|
|
|
86
86
|
# if api_token and api_token==""
|
|
87
87
|
try:
|
|
88
88
|
public_key = live_auth_public_key if prod else test_auth_public_key
|
|
89
|
-
decoded = jwt.decode(bearer.credentials, public_key, algorithms=["RS256"])
|
|
89
|
+
decoded = jwt.decode(bearer.credentials, public_key, algorithms=["RS256"], leeway=10)
|
|
90
90
|
# print(decoded)
|
|
91
91
|
return {"type": "user",
|
|
92
92
|
"user": {"id": decoded.get("id"), "name": decoded.get("name"), "email": decoded.get("email"), "org": decoded.get("org"),
|
|
@@ -4,7 +4,7 @@ cycls/sdk.py,sha256=2XnIV4c0UBcHylbCZtBqv6f-4EgJaPrg2LuXUrVZPK0,5901
|
|
|
4
4
|
cycls/theme/assets/index-CE4acW4J.css,sha256=yN0rMoDcVYJ043rHIgaxF7cierHER6ivIrrWnFCopB4,110
|
|
5
5
|
cycls/theme/assets/index-DK37eWM7.js,sha256=pRHnyd8ewPbfpCrSE5zndG3YQ4YTW1t_ORdEI21ky7U,1138629
|
|
6
6
|
cycls/theme/index.html,sha256=c4IX-5NB8HjYy0_sXIoP6dYVoHgp-Zlbjhym9OhtkAM,738
|
|
7
|
-
cycls/web.py,sha256=
|
|
8
|
-
cycls-0.0.2.
|
|
9
|
-
cycls-0.0.2.
|
|
10
|
-
cycls-0.0.2.
|
|
7
|
+
cycls/web.py,sha256=yAnOPh4zh7wXkTDOrpjp1Rh0s_PTkoX6PLhSC9UHmIM,5007
|
|
8
|
+
cycls-0.0.2.54.dist-info/METADATA,sha256=jX-CGmSbkgPFsLGjbTgjTq45tlQWDjALAWXSGfgJJvY,4800
|
|
9
|
+
cycls-0.0.2.54.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
10
|
+
cycls-0.0.2.54.dist-info/RECORD,,
|
|
File without changes
|