I am using Auth0 with a React SPA + Rails API setup.
I want to retrieve an RS256-signed Access Token using getAccessTokenSilently()
from the SPA.
I have already checked and configured the following:
- OIDC Conformant is enabled for the SPA application in Auth0
- The API uses RS256 and has encryption disabled
- Audience (
https://my_backend_tk.com
) is correctly specified - Callback URLs and Web Origins are properly set
- I even created a new API and a new Auth0 Application from scratch
However, getAccessTokenSilently()
still returns an encrypted token like this:
{
"alg": "dir",
"enc": "A256GCM"
}
This seems like a misconfiguration or bug.
Tenant name: dev-id5xx82j7py05t5w
Please help. I’m stuck.