Skip to content

Commit 4d0b557

Browse files
committed
🐛 Remove depreacted atob to allow modern jwt tokens
1 parent 4c6e007 commit 4d0b557

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/utils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,5 @@ export const toBase64 = (input: string): string => {
99
};
1010

1111
export const fromBase64 = (input: string): string => {
12-
if (typeof atob !== 'undefined') {
13-
return atob(input);
14-
} else {
15-
return Buffer.from(input, 'base64').toString('binary');
16-
}
12+
return Buffer.from(input, 'base64').toString('binary');
1713
};

0 commit comments

Comments
 (0)