How do I check cached token expiry in an Auth0 Rule?

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?

Hey there @jgleason sorry for the delayed response!

Yes, jwt-decode will do the trick and I’ve seen this used before :slight_smile:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.