rankade.api.Token

Module Contents

Classes

Token

JWT Object

Data

logger

API

logger = 'getLogger(...)'
class Token[source]

JWT Object

token: str = None

JWT string

algorithms: Optional[List[str]] = 'field(...)'

List of JWA Algorithms to use in JWT decoding. See rfc7518 section-3.1 for a full list. “HS256” by default.

__post_init__()[source]
property bearer: str

For use with authorisation returns “Bearer” + token.

property is_invalid: bool

Checks whether the token is invalid or not. By checking if the token can be decoded then checks the expiry date.