auth0-pnp-exampleco-timesheets icon indicating copy to clipboard operation
auth0-pnp-exampleco-timesheets copied to clipboard

What is the difference between "express-jwt" and "express-oauth2-jwt-bearer"?

Open kunalvirk opened this issue 1 year ago • 0 comments

Hi,

My application consists of a simple SPA + Node.js/Express.js API (backend). While following documentation I got confused at a point where there are two libraries "express-jwt" and "express-oauth2-jwt-bearer" to resolve I guess the same issue which is decoding the JWT token and matching it with the Auth0 domain.

Here are the links to the respective documentations:

What is the fundamental difference between the above two? And which library is recommended to use in which case?

Thanks,

kunalvirk avatar May 30 '23 13:05 kunalvirk