1bc7a0c
1
2
3
4
5
6
7
8
@app.get("/logout") def logout(): response = RedirectResponse(url="/", status_code=status.HTTP_302_FOUND) response.delete_cookie(key=f"access-token") response.delete_cookie(key=f"access-token-unsecure") print("Logout user!") return response