DEV Community

Discussion on: Authentication with JSON Web Tokens in .NET Core 3.1

Collapse
 
metapone profile image
metapone

When you used AddJwtBearer in Startup.cs, the AppSettings token was converted by the GetBytes method of Encoding.ASCII instead of Encoding.UTF8 like in AuthController. But then I tried running it and it still worked. Could you explain to me why?