How to ignore auto refresh with @auth0/auth0-spa-js?

We’re using the approach suggested in the latest Auth0 / Angular 2+ Quickstart with the @auth0/auth0-spa-js library - with the the suggested http interceptor that calls getTokenSilently() to automatically refresh the token. This works great for almost all scenarios, but we sometimes need to send data to our API without triggering the refresh - so I need the access token.

Is there another way to obtain the access_token without calling getTokenSilently()? (we are trying to avoid storing the tokens in local storage, per the Auth0 security suggestions) Thank you.

Good morning @Ender and welcome to Auth0’s Community!

Have you experienced success leveraging calls like fetchAuthConfig as described in our quickstart below? Thanks!

I was hoping to follow up on this subject to see how everything is going? Thanks!

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