public ActionResult Authenticate() { try { var token = userManager.GetUserToken(); return(Ok(new { access_token = token })); } catch (Exception ex) { logger.Error(ex, "An error occurred"); return(StatusCode(StatusCodes.Status500InternalServerError, ex)); } }
public ActionResult Authenticate() { var token = userManager.GetUserToken(); return(Ok(new { access_token = token })); }