Auth0 Home Blog Docs

UnauthorizedError: jwt malformed in express.js

I solved this by adding audience property to the Auth0Provider component in my SPA.

More information: https://auth0.com/docs/quickstart/spa/react/02-calling-an-api#specify-the-api-audience

I used this example in my SPA setup: https://auth0.com/docs/quickstart/spa/react

Thanks a lot @halseth.torleif for sharing that knowledge here!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.