From 711312e09c7f49b10d622dc58a0d712925a4af8e Mon Sep 17 00:00:00 2001 From: Tim Neumann <neumantm@fius.informatik.uni-stuttgart.de> Date: Sat, 5 Aug 2023 22:26:18 +0200 Subject: [PATCH] feat(api): Add check token endpoint --- backend/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/main.py b/backend/main.py index 0e126d2..e659b45 100644 --- a/backend/main.py +++ b/backend/main.py @@ -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) -- GitLab