Beispiel #1
0
        public IActionResult Login()
        {
            int    tokenExpired = Convert.ToInt32(_configuration[JwtConst.TokenExpiredHours]);
            string token        = _jwtTokenUtil.CreateToken(new LoginUser(), tokenExpired);

            return(Ok(token));
        }