'What is the difference between CreateToken and WriteToken

As mentioned, in .Net core we use

var tokenHandler = new JwtSecurityTokenHandler();
    
var token = tokenHandler.CreateToken(tokenDescriptor);
    
return tokenHandler.WriteToken(token);

Here what is the difference between CreateToken and WriteToken?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source