Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @app.get("/logout")
- async def route_logout_and_remove_cookie():
- response = RedirectResponse(url="/")
- response.delete_cookie("Authorization", domain="localtest.me")
- return response
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement