cycls 0.0.2.52__tar.gz → 0.0.2.54__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cycls
3
- Version: 0.0.2.52
3
+ Version: 0.0.2.54
4
4
  Summary: Cycls SDK
5
5
  Author: Mohammed J. AlRujayi
6
6
  Author-email: mj@cycls.com
@@ -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"),
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "cycls"
3
- version = "0.0.2.52"
3
+ version = "0.0.2.54"
4
4
 
5
5
  packages = [{ include = "cycls" }]
6
6
  include = ["cycls/theme/**/*"]
File without changes
File without changes
File without changes
File without changes