auth0 / node-oauth2-jwt-bearer

Monorepo for libraries that protect Node APIs with OAuth2 Bearer JWTs
MIT License
95 stars 31 forks source link

Create a separate method to validate a jwt #150

Open nachomglz opened 3 months ago

nachomglz commented 3 months ago

Checklist

Describe the problem you'd like to have solved

I want to create a custom middleware to handle authentication and user registration, but want to use this library to validate the token.

Describe the ideal solution

A method that I can just call from whatever part of the code, which would receive the same parameters as auth and get the validation result.

Alternatives and current workarounds

No response

Additional context

No response