I wasn’t using localstorage before, but I am now, and am still having no luck. I wasn’t including any additional scope. Do I need to? I see offline_access is required, but I thought I’d read enabling ‘useRefreshTokens’ did that under the covers. However, I tried with and without including that as well.
Here is my code:
AuthModule.forRoot({
domain: environment.domain,
clientId: environment.clientID,
redirectUri: ${window.location.origin}
,
audience: ‘https://uncharted-insights.herokuapp.com’,
useRefreshTokens: true,
cacheLocation: ‘localstorage’,
scope: ‘offline_access’,
// Specify configuration for the interceptor
httpInterceptor: {
allowedList: [
{
uri: '/api/*',
tokenOptions: {
audience: 'https://uncharted-insights.herokuapp.com',
}
}
],
}
}),