I have a rule that calls a service using a M2M token. I want to cache the token in the rule and then refresh it when it has expired. What would the proper way to decode and check the expiry be? JWT-Decode?
jgleason
1
ty.frith
3
Hey there @jgleason sorry for the delayed response!
Yes, jwt-decode will do the trick and I’ve seen this used before ![]()
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to find expiry time from auth0 token | 4 | 2265 | February 11, 2023 | |
| Can I get the access token as a string in a Rule or Action? | 8 | 4314 | May 15, 2024 | |
| How to check access_token is expired? | 3 | 10851 | February 25, 2022 | |
| Question about token expiry | 1 | 817 | May 26, 2023 | |
| Expiration DateTime for Machine to Machine Applications (Client Credentials flow) | 1 | 44 | April 30, 2026 |