go-chi / jwtauth

JWT authentication middleware for Go HTTP services
MIT License
541 stars 91 forks source link

Authenticator: remove jwt.Validate #91

Open drakkan opened 2 months ago

drakkan commented 2 months ago

jwt.Validate is already called in Verifier, no need to call it twice.

If jwt.Validate fails in Verifier, the error is set in the context and the Authenticator retrieves the token and error from the context.