Auth0 Home Blog Docs

Auth0 Cordova - Refresh Tokens

cordova
refresh-tokens

#1

I’m using the Auth0 Cordova project to implement PKCE auth. The quickstarts for this are very helpful!

One thing I don’t see is a suggestion for how to implement refresh tokens (or silent auth?) with this Auth0 Cordova module. Any suggestions?


#2

Refresh tokens are available for more then one grant type and are not specific to just PKCE so they stand on their own in terms of documentation and it mostly consists of toggling configurations and adding specific values/parameters to the requests you’re already performing.

If you haven’t done so already, I would recommend you to go through the reference documentation on refresh tokens which should enable you to apply their use to the grant type (PKCE) you’re already performing.


#3

In general it was good to find that PKCE handles session extensions via refresh tokens (as opposed to silent auth or other approaches). The docs you pointed to helped confirm the approach, and helped implement refreshing tokens & revoking them.

Thanks @jmangelo! The documentation on the new OIDC items is evolving nicely.


#4