Skip to content
Snippets Groups Projects
Commit 5033e83a authored by hanfi's avatar hanfi
Browse files

Merge branch 'checkToken' into 'main'

feat(api): Add check token endpoint

See merge request hanfi/bgp_backend!1
parents f15e88f3 711312e0
No related branches found
No related tags found
2 merge requests!4fix(auth): Protect /storages and /tag endpoints,!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