Beispiel #1
0
        public IActionResult GenerateJwt()
        {
            var claims = new JwtCustomClaims
            {
                FirstName = "Vynn",
                LastName  = "Durano",
                Email     = "*****@*****.**"
            };

            var jwt = _jwtHandler.CreateToken(claims);

            var link = _jwtHandler.GenerateLink(jwt.Token);

            return(Ok(jwt));
        }