mirror of
https://github.com/apache/superset.git
synced 2026-04-23 18:14:56 +00:00
chore(embedded): refresh the guest token (#19132)
* refresh the guest token * put back the date logic * version * fix time hijinks * test * Update superset-embedded-sdk/src/guestTokenRefresh.ts
This commit is contained in:
committed by
GitHub
parent
76b4a14d30
commit
54b60ded8e
@@ -1192,7 +1192,7 @@ class TestGuestTokens(SupersetTestCase):
|
||||
self.assertEqual(aud, decoded_token["aud"])
|
||||
self.assertEqual("guest", decoded_token["type"])
|
||||
self.assertEqual(
|
||||
now + (self.app.config["GUEST_TOKEN_JWT_EXP_SECONDS"] * 1000),
|
||||
now + (self.app.config["GUEST_TOKEN_JWT_EXP_SECONDS"]),
|
||||
decoded_token["exp"],
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user