Skip to content

jam.jwt.lists

lists

Module for managing white and black lists.

Modules:

Name Description
json
redis

Classes:

Name Description
BaseJWTList

Abstract class for lists manipulation.

BaseJWTList

BaseJWTList(list_type: Literal['white', 'black'])

Bases: ABC

Abstract class for lists manipulation.

Methods:

Name Description
add

Method for adding token to list.

check

Method for checking if a token is present in the list.

delete

Method for removing a token from a list.

add abstractmethod

add(token: str) -> None

Method for adding token to list.

check abstractmethod

check(token: str) -> bool

Method for checking if a token is present in the list.

delete abstractmethod

delete(token: str) -> None

Method for removing a token from a list.