From 48667d9bec143e453d491fc65220c34a2560bc4f Mon Sep 17 00:00:00 2001 From: yahavi Date: Mon, 20 May 2024 15:04:36 +0300 Subject: [PATCH] Remove redundant comment --- lib/utils.js | 1 - src/utils.ts | 2 -- 2 files changed, 3 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index 0082adb07..77d882625 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -182,7 +182,6 @@ class Utils { let base64Payload = tokenParts[1]; let utf8Payload = Buffer.from(base64Payload, 'base64').toString('utf8'); let payload = JSON.parse(utf8Payload); - //let payload: JWTTokenData = JSON.parse(Buffer.from(tokenParts[1], 'base64').toString('utf8')); if (!payload || !payload.sub) { throw new Error(`OIDC invalid access token format`); } diff --git a/src/utils.ts b/src/utils.ts index e1d9d7180..03cadea91 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -188,8 +188,6 @@ export class Utils { let base64Payload: string = tokenParts[1]; let utf8Payload: string = Buffer.from(base64Payload, 'base64').toString('utf8'); let payload: JWTTokenData = JSON.parse(utf8Payload); - - //let payload: JWTTokenData = JSON.parse(Buffer.from(tokenParts[1], 'base64').toString('utf8')); if (!payload || !payload.sub) { throw new Error(`OIDC invalid access token format`); }