I integrated Auth0 into an app that uses capacitor and Vue 3 using this quick start guide. One can login and get redirected to the app successfully. But then the app makes a call to an API backend server (api.example.com). This API is protected and therefore the client retrieves a new access token for this call using getAccessTokenSilently
from the auth0/vue SDK. When the Vue app is running only for the browser, without capacitor, everything works fine. But as soon as I run it on iOS with capacitor, I get an error exactly like described here BUT the solution doesn’t work. I already set the API identifier as the audience in the auth0 setup.
domain: '....eu.auth0.com',
clientId: '...',
useRefreshTokens: true,
useRefreshTokensFallback: false,
authorizationParams: {
audience: '...',
redirect_uri: '...://....auth0.com/ios/.../callback'
}
I’d be glad for any help