Issue with express-oauth2-jwt-bearer

I followed the tutorial at Auth0 Node (Express) API SDK Quickstarts: Authorization
and created the middleware

const checkJwt = auth({
  audience: process.env.AUDIENCE_ID,
  issuerBaseURL: process.env.ISSUER_BASE_URL,
});

However, I get the error AssertionError: You must provide a ‘tokenSigningAlg’ for validating symmetric algorithms.
However, I am trying to validate the RS256 tokens that were created on the auth0 dashboard.

Any help would be much appreciated. Thanks

Hi @ryanloh29,

Welcome to the Auth0 Community!

That code snippet is working okay for me. Do you have some additional info you could share? More code from your implementation?

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