public async Task <IActionResult> Logout()
        {
            await _signInManager.Logout();

            var identity  = (ClaimsIdentity)this.User.Identity;
            var userEmail = identity.FindFirst(JwtRegisteredClaimNames.Sub).Value;
            var user      = await _userManager.GetUserByEmail(userEmail);

            _logger.LogTrace("User logged out");
            return(Ok());
        }
Esempio n. 2
0
 public ActionResult Logout()
 {
     _signInManager.Logout();
     return(Redirect("/"));
 }
Esempio n. 3
0
        public async Task Logout()
        {
            await _signInManager.Logout();

            _logger.LogTrace("User logged out");
        }
Esempio n. 4
0
 public async Task Logout()
 {
     await _signInManager.Logout();
 }