Skip to content

FastAuth internal types

fastauth.types

TokenType module-attribute

TokenType = Literal['access', 'refresh']

StringOrSequence module-attribute

StringOrSequence = Union[str, Sequence[str]]

TokenLocations module-attribute

TokenLocations = Literal['headers', 'cookies']

RETURN_TYPE module-attribute

RETURN_TYPE = TypeVar('RETURN_TYPE')

DependencyCallable module-attribute

DependencyCallable = Callable[..., RETURN_TYPE | Coroutine[None, None, RETURN_TYPE] | AsyncGenerator[RETURN_TYPE, None] | Generator[RETURN_TYPE, None, None] | AsyncIterator[RETURN_TYPE]]