Skip to content

Commit cfa70ce

Browse files
authored
fix(shared): Use globalThis instead of global in encodeB64 (#7648)
1 parent 1c20933 commit cfa70ce

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/tired-oranges-run.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clerk/shared": patch
3+
---
4+
5+
Use `globalThis` instead of `global` in `encodeB64`

packages/shared/src/internal/clerk-js/encoders.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export function encodeB64(input: string) {
2-
return global.btoa(input);
2+
return globalThis.btoa(input);
33
}
44

55
// https://stackoverflow.com/questions/30106476/

0 commit comments

Comments
 (0)