Skip to content
Snippets Groups Projects
Commit 711312e0 authored by Tim Neumann's avatar Tim Neumann
Browse files

feat(api): Add check token endpoint

parent f15e88f3
No related branches found
No related tags found
2 merge requests!2feat(api): Add check token endpoint,!1feat(api): Add check token endpoint
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
...@@ -141,3 +141,8 @@ def verify_supporter(form_data: OAuth2PasswordRequestForm = Depends()): ...@@ -141,3 +141,8 @@ def verify_supporter(form_data: OAuth2PasswordRequestForm = Depends()):
), ),
"token_type": "bearer", "token_type": "bearer",
} }
@app.get("/token/check")
def check_token_validity(token: str = Depends(oauth2_scheme)):
check_token(token)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment