public IActionResult CreateToken([FromBody] BePLoginModel login)
        {
            IActionResult response = Unauthorized();

            var user = Authenticate(login);

            if (user != null)
            {
                var tokenString = BuildToken(user);
                response = Ok(new { token = tokenString });
            }

            return(response);
        }
        private UserModel Authenticate(BePLoginModel model)
        {
            UserModel user = null;

            if (model.Username == "toon" && model.Password == "geeninspiratie")
            {
                user = new UserModel()
                {
                    Name  = "Toon Hooyberghs",
                    Email = "*****@*****.**"
                };
            }


            return(user);
        }