Skip to content

Instantly share code, notes, and snippets.

@DonkeyKongJr
Created March 7, 2019 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DonkeyKongJr/3cdedd207b262cf825f700f1b5fc8726 to your computer and use it in GitHub Desktop.
Save DonkeyKongJr/3cdedd207b262cf825f700f1b5fc8726 to your computer and use it in GitHub Desktop.
[Authorize]
public async Task Logout()
{
await HttpContext.SignOutAsync("Auth0", new AuthenticationProperties
{
RedirectUri = "https://patrickschadler.com"
});
await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment