diff --git a/backend/main.py b/backend/main.py index 0e126d233fd9d50490bfacb50ea0c55152e5288f..e659b458398b4de9c2ff21e7b8c6e537ca5c5154 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)