private string GenerateJwtToken(IEnumerable <Claim> claims) { var token = _config.SecurityToken(claims); return(new JwtSecurityTokenHandler().WriteToken(token)); }