Skip to content
Snippets Groups Projects
Commit 95607b79 authored by c-tim's avatar c-tim
Browse files

Merge branch 'checkToken' into 'staging'

feat(api): Add check token endpoint

See merge request hanfi/bgp_backend!2
parents f15e88f3 711312e0
No related branches found
No related tags found
2 merge requests!5merge from staging,!2feat(api): Add check token endpoint
...@@ -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