Blacklisted Token
This model stores the blacklisted JWT token after user logged out. It will be automatically cleared out at a configurable interval to keep the performance optimised.
Bases: Base
Blacklisted token model
This model stores the blacklisted JWT token after user logged out. It will be automatically cleared out at a configurable interval to keep the performance optimised.
Bases: Base
Blacklisted token model
FasterAPI\models.py
__tablename__ = 'blacklisted_tokens'
class-attribute
instance-attribute
exp: Mapped[datetime]
instance-attribute
id: Mapped[int] = mapped_column(primary_key=True, index=True)
class-attribute
instance-attribute
token: Mapped[str] = mapped_column(unique=True, index=True)
class-attribute
instance-attribute