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
Branches
Tags
2 merge requests!2feat(api): Add check token endpoint,!1feat(api): Add check token endpoint
......@@ -141,3 +141,8 @@ def verify_supporter(form_data: OAuth2PasswordRequestForm = Depends()):
),
"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