auth0 / node-oauth2-jwt-bearer

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

Create a separate method to validate a jwt #150

Open nachomglz opened 1 month ago

nachomglz commented 1 month 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