From 24d6b27e5ade62194eb47d24cc8a03fce0f6f0c1 Mon Sep 17 00:00:00 2001 From: Pekka Rossi Date: Thu, 20 Apr 2023 09:52:25 +0200 Subject: [PATCH] Change from 'as string' to 'toString()' in validateUserDataSubIdToken --- .../angular-auth-oidc-client/src/lib/user-data/user.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/angular-auth-oidc-client/src/lib/user-data/user.service.ts b/projects/angular-auth-oidc-client/src/lib/user-data/user.service.ts index dd5b16019..ec2366a20 100644 --- a/projects/angular-auth-oidc-client/src/lib/user-data/user.service.ts +++ b/projects/angular-auth-oidc-client/src/lib/user-data/user.service.ts @@ -153,7 +153,7 @@ export class UserService { return false; } - if ((idTokenSub as string) !== (userDataSub as string)) { + if ((idTokenSub.toString()) !== (userDataSub.toString())) { this.loggerService.logDebug(currentConfiguration, 'validateUserDataSubIdToken failed', idTokenSub, userDataSub); return false;