Skip to content

Commit

Permalink
Remove redundant comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi committed May 20, 2024
1 parent a480950 commit 48667d9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}
Expand Down
2 changes: 0 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}
Expand Down

0 comments on commit 48667d9

Please sign in to comment.