auth0-samples/auth0-pnp-exampleco-timesheets

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

Opened this issue · 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,