IndominusByte / fastapi-jwt-auth

FastAPI extension that provides JWT Auth support (secure, easy to use, and lightweight)
http://indominusbyte.github.io/fastapi-jwt-auth/
MIT License
630 stars 143 forks source link

Verifying token after checking "Required" #50

Closed vindyvalentine closed 2 years ago

vindyvalentine commented 3 years ago

It is better to checking validity of token after it pass the required of type.

For example, check the token if it's access token, then do a validity check including revoked or not (check if token in denylist)

The reason i suggest this method is because i put the "denylist" in database, so it would be save the request to the database