deps#
Dependencies for the endpoints.
The goal is to create all dependencies using a Config class so that the app can be configured differently for testing and production.
Functions#
Return the token if it is valid, otherwise return None. |
|
|
|
Retrieve the data of the current user from the database. |
filter_valid_token()
#
get_current_user()
#
- async rootski.main.deps.get_current_user(request: starlette.requests.Request, email: str = Depends(get_authorized_user_email_or_anon)) rootski.schemas.user.User [source]#
Retrieve the data of the current user from the database.