Type Hints
Numeric = Union[float, int]
module-attribute
ObjOrSeq = Union[T, Sequence[T]]
module-attribute
StrOrSeq = ObjOrSeq[str]
module-attribute
DateTimeExpression = Union[datetime.datetime, datetime.timedelta]
module-attribute
SymmetricAlgorithmType = Literal['HS256', 'HS384', 'HS512']
module-attribute
AsymmetricAlgorithmType = Literal['ES256', 'ES256K', 'ES384', 'ES512', 'RS256', 'RS384', 'RS512', 'PS256', 'PS384', 'PS512']
module-attribute
AlgorithmType = Union[SymmetricAlgorithmType, AsymmetricAlgorithmType]
module-attribute
HTTPMethod = Literal['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'OPTIONS', 'PATCH']
module-attribute
HTTPMethods = Sequence[HTTPMethod]
module-attribute
SameSitePolicy = Literal['None', 'Lax', 'Strict']
module-attribute
TokenType = Literal['access', 'refresh']
module-attribute
TokenLocation = Literal['headers', 'cookies', 'json', 'query']
module-attribute
TokenLocations = Sequence[TokenLocation]
module-attribute
TokenCallback = Callable[[str, ParamSpecKwargs], bool]
module-attribute
ModelCallback = Callable[[str, ParamSpecKwargs], Optional[T]]
module-attribute