'How to logout with flask_jwt_extended
Generating jwt with flask_jwt_extended.
creating token
create_access_token(identity=identity)
i couldn't find anything about logout. Revoking jwt token
Thanks
Solution 1:[1]
Define a callback function via the token_in_blocklist_loader() decorator.
In practice you'd have some DB where you are keeping track of this.
I don't know what you mean by did not find anything, there is a documentation on revoking it that has some good advice.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
