Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save francbartoli/2bdff3df82d5282fcd0e74ea9bfac8c3 to your computer and use it in GitHub Desktop.

Select an option

Save francbartoli/2bdff3df82d5282fcd0e74ea9bfac8c3 to your computer and use it in GitHub Desktop.
@app.get("/logout")
async def route_logout_and_remove_cookie():
response = RedirectResponse(url="/")
response.delete_cookie("Authorization", domain="localtest.me")
return response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment