I have a React App that uses the oidc-client.js library to authenticate users against IdentityServer. This all works well and have no issues.
I would like to switch to Auth0 using the same setup. For the most part this all works and I am able to login and retrieve the id_token, however I do not receive the access_token. there is a ± 12 char value in the access_token field but this does not pass any form of token validation.
I’ve tried changing the response_type to “token id_token” but no difference. I’ve included my Api, that is registered on Auth0, into the scope, but still no access_token.
Any ideas on how I can retrieve the access_token and id_token, at the same time/login?
I’ve found a few similar topics here, but nothing that has resolved the issue for me:
The other big issue I have is logout. It seems that Auth0 does not report a logout URL. I can however set this inside the metadata and get logout working successfully.