diff --git a/package.json b/package.json index 9622b8f..8fc388b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cryptr/cryptr-react-native", - "version": "1.0.1", + "version": "1.0.2", "description": "React Native SDK for Cryptr Authentication", "main": "lib/commonjs/index", "module": "lib/module/index", @@ -156,6 +156,7 @@ ] }, "dependencies": { + "core-js": "^3.37.1", "crypto-js": "^4.2.0", "jwt-decode": "^4.0.0", "react-native-uuid": "^2.0.2" diff --git a/src/utils/jwt.tsx b/src/utils/jwt.tsx index b79dcc0..0ae2650 100644 --- a/src/utils/jwt.tsx +++ b/src/utils/jwt.tsx @@ -1,3 +1,4 @@ +import 'core-js/stable/atob'; import { jwtDecode } from 'jwt-decode'; import { JWT, RS256 } from './constants'; import type { PreparedCryptrConfig } from './interfaces'; diff --git a/yarn.lock b/yarn.lock index b92ef0c..23877c3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1728,6 +1728,7 @@ __metadata: "@types/jest": ^29.5.12 "@types/jwt-decode": ^3.1.0 "@types/react": ^18.2.44 + core-js: ^3.37.1 crypto-js: ^4.2.0 del-cli: ^5.1.0 eslint: ^8.51.0 @@ -4702,6 +4703,13 @@ __metadata: languageName: node linkType: hard +"core-js@npm:^3.37.1": + version: 3.37.1 + resolution: "core-js@npm:3.37.1" + checksum: 2d58a5c599f05c3e04abc8bc5e64b88eb17d914c0f552f670fb800afa74ec54b4fcc7f231ad6bd45badaf62c0fb0ce30e6fe89cedb6bb6d54e6f19115c3c17ff + languageName: node + linkType: hard + "core-util-is@npm:~1.0.0": version: 1.0.3 resolution: "core-util-is@npm:1.0.3"