cycls 0.0.2.51__py3-none-any.whl → 0.0.2.53__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/sdk.py CHANGED
@@ -62,7 +62,8 @@ class Agent:
62
62
  if len(self.registered_functions) > 1:
63
63
  print(f"⚠️ Warning: Multiple agents found. Running '{i['name']}'.")
64
64
 
65
- i["config"][1] = False
65
+ # i["config"][1] = False
66
+ i["config"][1] = prod
66
67
 
67
68
  copy={str(self.theme):"theme", str(CYCLS_PATH)+"/web.py":"web.py"}
68
69
  copy.update({i:i for i in self.copy})
cycls/web.py CHANGED
@@ -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
  Metadata-Version: 2.4
2
2
  Name: cycls
3
- Version: 0.0.2.51
3
+ Version: 0.0.2.53
4
4
  Summary: Cycls SDK
5
5
  Author: Mohammed J. AlRujayi
6
6
  Author-email: mj@cycls.com
@@ -1,10 +1,10 @@
1
1
  cycls/__init__.py,sha256=bVT0dYTXLdSC3ZURgtm-DEOj-VO6RUM6zGsJB0zuj6Y,61
2
2
  cycls/runtime.py,sha256=hLBtwtGz0FCW1-EPCJy6kMdF2fB3i6Df_H8-bm7qeK0,18223
3
- cycls/sdk.py,sha256=oXHb4ZDVQ6KFCodN_TfmB7dG_7BDzNhc_gSjbvDCshA,5869
3
+ 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=oc1a-Z3dFy4Ub7u0wF5_wrsvoosT3NgrOw4iWJ5KFns,4979
8
- cycls-0.0.2.51.dist-info/METADATA,sha256=dlmdVQbACMiH0M1nYUozIQe6xaBI4lk1bUDw4C6FSt8,4800
9
- cycls-0.0.2.51.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
10
- cycls-0.0.2.51.dist-info/RECORD,,
7
+ cycls/web.py,sha256=jdlrGyjxPNg83B-jOqVHRtR78ve0duAm1xkMVw3ja8Y,4990
8
+ cycls-0.0.2.53.dist-info/METADATA,sha256=oU6fojMIOh-QHiFX7nduQTuESJ6NHT4ON1rgqXDwIdU,4800
9
+ cycls-0.0.2.53.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
10
+ cycls-0.0.2.53.dist-info/RECORD,,