api.token

Functions

jwt_decode(→ Any)

jwt_encode(→ str)

get_token(→ dict[str, str])

try_get_encoded_token(→ str)

Module Contents

api.token.jwt_decode(request: onegov.core.request.CoreRequest, token: str | bytes) Any[source]
api.token.jwt_encode(request: onegov.core.request.CoreRequest, payload: dict[str, Any]) str[source]
api.token.get_token(request: onegov.core.request.CoreRequest) dict[str, str][source]
api.token.try_get_encoded_token(request: onegov.core.request.CoreRequest) str[source]