go-chi / jwtauth

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

How to determine token type on Verify? #66

Closed flybot closed 2 years ago

flybot commented 2 years ago

I have regular and refresh token. At the moment user can pass verification with both tokens. I want check token's type on Verify and allow refresh token only for Refresh procedure. Is it real?

flybot commented 2 years ago

Ok, I detected token type in Authenticator

bigusef commented 4 months ago

sorry to open this again, but how to detect and the diff of the two token (access, refresh) in authenticator ?