Slient authentication consistency

Hello @dan.woda,

Thank you, then I know that to be safe. As a matter of fact I do have a little bit of a problem. When using the angular auth0 library I have created an rxjs chain like this:

    const stream$ = this.authService.getAccessTokenSilently({ ignoreCache: true }).pipe(
      switchMap(_ => {
        ...perform()
    }));

For me it is critical that when I execute perform that the access token has been updated. The perform() will trigger an ngrx action that will through an effect call a backend server that relies on that the access token has been updated with the most recent data because the backend uses the properties we have added to the token to authorize access when the user is authenticated.

The above works… most of the time but sometimes it doesn’t. The access token has not been updated when perform() is executed. As I get the har files from the browsers I can see that when it works I see that the auth0 service was contacted with a request and I got a new token. When it doesn’t there seems to be no /token request at all being sent from the angular auth0 library and currently I don’t understand why. Because I am always sending ignoreCache: true.

Regards