Added revoking token during logout

This commit is contained in:
Marcin-Ramotowski
2025-03-29 20:57:01 +00:00
parent 99dd5148b1
commit 8637eaa96f
3 changed files with 21 additions and 7 deletions

View File

@ -15,3 +15,6 @@ class User(db.Model):
@staticmethod
def get_editable_fields():
return {"username", "email", "role", "password"}
class RevokedToken(db.Model):
jti = db.Column(db.String(100), primary_key=True)