diff --git a/bun.lockb b/bun.lockb index 654e65692..3694be048 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index f426f3b77..27dd300bd 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "expo-system-ui": "~2.4.0", "expo-web-browser": "~12.3.2", "expo-webauthn": "workspace:*", + "js-base64": "^3.7.5", "react": "^18.2.0", "react-dom": "^18.2.0", "react-native": "0.72.6", diff --git a/utils/polyfill.ts b/utils/polyfill.ts index 9dc9cfabb..84f0f952e 100644 --- a/utils/polyfill.ts +++ b/utils/polyfill.ts @@ -1,7 +1,10 @@ +import { atob, btoa } from "js-base64"; import { TextEncoder } from "text-encoding"; /* eslint-disable @typescript-eslint/no-unnecessary-condition */ +global.atob ??= atob; +global.btoa ??= btoa; global.TextEncoder ??= TextEncoder; if (global.window) {