app.core.auth

Module Contents

Classes

JWTBearer

Functions

token_response(token: str)

signJWT(user_id: str) → Dict[str, str]

decodeJWT(token: str) → dict

Attributes

JWT_SECRET

JWT_ALGORITHM

app.core.auth.JWT_SECRET
app.core.auth.JWT_ALGORITHM
app.core.auth.token_response(token: str)
app.core.auth.signJWT(user_id: str) Dict[str, str]
app.core.auth.decodeJWT(token: str) dict
class app.core.auth.JWTBearer(auto_error: bool = True)

Bases: fastapi.security.HTTPBearer

async __call__(self, request: fastapi.Request)
verify_jwt(self, jwtoken: str) bool