Skip to content

Commit

Permalink
Fix cloud flow again
Browse files Browse the repository at this point in the history
Fixed expiry time check
  • Loading branch information
WolfwithSword committed Nov 27, 2024
1 parent 2c29339 commit 6dfe178
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
"z": "a8bb36f4c96539fb",
"g": "ceb9c7af8ac85208",
"name": "Set Access Token Global",
"func": "global.set(\"BAMBU_ACCESS_TOKEN\", msg.payload.accessToken);\nglobal.set(\"BAMBU_REFRESH_TOKEN\", msg.payload.refreshToken);\n\nlet now = Date.now();\nlet expiresIn = msg.payload.expiresIn;\nlet expirey = (expiresIn*1000) + now;\nglobal.set(\"BAMBU_TOKEN_EXPIRY\", expirey);",
"func": "global.set(\"BAMBU_ACCESS_TOKEN\", msg.payload.accessToken);\nglobal.set(\"BAMBU_REFRESH_TOKEN\", msg.payload.refreshToken);\n\nlet now = Date.now();\nlet expiresIn = msg.payload.expiresIn;\nlet expirey = (expiresIn*1000) + now;\nglobal.set(\"BAMBU_TOKEN_EXPIRY\", Math.round(expirey/1000));",
"outputs": 1,
"timeout": "",
"noerr": 0,
Expand Down

0 comments on commit 6dfe178

Please sign in to comment.