If I send this token to the Heroku endpoint (production), I get a 400 response with the message: ‘Invalid claims, please check the audience and issuer’
However, if I send the token to the API running locally (development)
Verifications:
The AUTH0_AUDIENCE in both the React app and the Flask API are the same:
https://<API-IDENTIFIER>
The AUTH0_DOMAIN in both the React app and the Flask API are also the same:
<TENANT-NAME>.us.auth0.com
The CLIENT_ID in the React app is the same as the app in the Auh0 Dashboard
Any idea where this error might be coming from? Thanks!
Absolutely cannot believe that I missed this. PLEASE check that your environment variables in both production and development environments are accurate. My audience variable was not correct in my Heroku deployment. This solved my problem. Unreal, can’t believe I glossed over that…