Skip to content
Snippets Groups Projects

feat(api): Add check token endpoint

Merged c-tim requested to merge c-tim/bgp_backend:checkToken into main
1 file
+ 5
0
Compare changes
  • Side-by-side
  • Inline
+ 5
0
@@ -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)
Loading