@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