From b97ecfcf31cece2677426750e42ca64cf9ceca87 Mon Sep 17 00:00:00 2001 From: Mauro van der Gun <51729581+mvdgun@users.noreply.github.com> Date: Fri, 17 Nov 2023 16:25:37 -0400 Subject: [PATCH] fix incorrect JsonWebToken class name (#38309) --- docs/core/compatibility/aspnet-core/8.0/securitytoken-events.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ... }; });