private async Task <IActionResult> TokenResult(IdentityUser user) { var encodedJwt = await tokenProvider.Get(user); return(Ok(new { Token = encodedJwt })); }