diff --git a/docs/core/compatibility/aspnet-core/8.0/securitytoken-events.md b/docs/core/compatibility/aspnet-core/8.0/securitytoken-events.md index a015236ade597..7ce781a924b3b 100644 --- a/docs/core/compatibility/aspnet-core/8.0/securitytoken-events.md +++ b/docs/core/compatibility/aspnet-core/8.0/securitytoken-events.md @@ -43,7 +43,7 @@ However, if you were down-casting one of the affected `SecurityToken` properties service.Configure(JwtBearerDefaults.AuthenticationScheme, options => { options.Events.TokenValidated = (context) => { // Replace your cast to JwtSecurityToken. - JSonWebToken token = context.SecurityToken as JSonWebToken; + JsonWebToken token = context.SecurityToken as JsonWebToken; // Do something ... }; });