I have gone live with my application using the ‘System’ management API to authenticate users. I now know this does not have the ‘offline access’ functionality i need and users are being signed out after 24 hours. I have created a new API with this but how can I switch without a downtime.
Angular Ionic application code:
AuthModule.forRoot({
domain: environment.auth0_domain,
clientId: environment.client_id,
redirectUri: environment.redirectUri,
cacheLocation: 'localstorage',
audience: `bar`,
useRefreshTokens: true,
}),
API authentication code
const checkJwt = jwt({
secret: jwksRsa.expressJwtSecret({
cache: true,
jwksUri: `https://${AUTH0_DOMAIN}/.well-known/jwks.json`,
}),
audience: `foo`,
issuer: `https://${AUTH0_DOMAIN}/`,
algorithms: ["RS256"],
}).unless({ path: unprotected });
How can i authenticate users on multiple audiences while the client update rolls out in the stores?
Any help will be much appreciated!