WARNING: This is a hack. Revert when Auth0 has fixed the issue.
To everyone who ends up here with the same issue in production, here is a workaround while Auth0 team fixes the issue:
Download the current version of your jwks.json
file (generally available at https://your_app.your_region.auth0.com/.well-known/jwks.json
) and store it on your domain to avoid CORS issues, or somewhere where you can easily set CORS headers (for instance S3).
Then, client-side, when instantiating WebAuth, use a private setting to tell it where to find the jwks file:
auth0 = new WebAuth({
domain: ...,
clientID: ...,
...
overrides: {
__jwks_uri: "MY_OWN_JWKS_URL"
}
}
Where MY_OWN_JWKS_URL
is the URL where you stored your jwks.json
.
Hope this helps,
– Fairjungle team