vimalloc / flask-jwt-extended

An open source Flask extension that provides JWT support (with batteries included)!
http://flask-jwt-extended.readthedocs.io/en/stable/
MIT License
1.56k stars 239 forks source link

How can i get identity in @before_request? #500

Closed miaokela closed 1 year ago

miaokela commented 2 years ago

How can i get identity in @before_request?

miaokela commented 2 years ago

DONE BY CUSTOM DECORATOR.

vimalloc commented 1 year ago

Another option would be to call verify_jwt_in_request in your @before_request, which will set everything up for you and allow you to use the standard functions provided by this library 👍