Skip to content
Snippets Groups Projects
Commit 2f46aa2f authored by Tim Repke's avatar Tim Repke
Browse files

improve security handling and add token handling options

parent 8384a083
No related branches found
No related tags found
1 merge request!41Master
Pipeline #1443 failed
......@@ -43,7 +43,7 @@ async def refresh_token(token_id: str, current_user: UserModel = Depends(get_cur
@router.delete('/token/{token_id}')
async def refresh_token(token_id: str, current_user: UserModel = Depends(get_current_active_user)):
async def revoke_token(token_id: str, current_user: UserModel = Depends(get_current_active_user)):
await auth_helper.clear_token_by_id(token_id=token_id,
verify_username=current_user.username)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment