Why does my app stop working when I add middleware to check my JWT token?

No problem, happy to help where I can!

A couple things:

  • Is there a specific reason you are looking to use HS256 as opposed to RS256 signing algorithm? RS256 in generally preferred.

  • Is your API set to use HS256 in settings? You should be able to check by navigating your API registered in Auth0 and scrolling down to Token Settings.

Some more on signing algorithms here: