Hello everyone,
I hope you guys having a great day/night!
I created a backend with NodeJS, express and secure it Auth0, i tested with the same token machine to machine that Auth0 provides, the routes check for authentication and authorization depending on the scopes that I assign to the API.
Now I created a React App uses Auth0 to secure my app, and I am able to get the token with getAccessTokenSilently(), however when I tried to use the token to call the API I am getting a jwt malformed error. I went into auth0 and assigned the correct permissions for the user that relates to the api. Tried to get another token, but still the same error.
I followed Auth0 React SDK Quickstarts: Call an API
I am getting Missing Refresh Token when i pass a audience that is following:
audience: `https://${domain}/api/v2/`,
I enter here the audience from the api, same error, the domain from the api and the same error, even the url where is hosted the app locally but i am getting the same error.
Any help?