Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit bfff9e0

Browse files
committed
fix: atob for jwt-decode
1 parent 074a74f commit bfff9e0

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cryptr/cryptr-react-native",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "React Native SDK for Cryptr Authentication",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",
@@ -156,6 +156,7 @@
156156
]
157157
},
158158
"dependencies": {
159+
"core-js": "^3.37.1",
159160
"crypto-js": "^4.2.0",
160161
"jwt-decode": "^4.0.0",
161162
"react-native-uuid": "^2.0.2"

src/utils/jwt.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'core-js/stable/atob';
12
import { jwtDecode } from 'jwt-decode';
23
import { JWT, RS256 } from './constants';
34
import type { PreparedCryptrConfig } from './interfaces';

yarn.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1728,6 +1728,7 @@ __metadata:
17281728
"@types/jest": ^29.5.12
17291729
"@types/jwt-decode": ^3.1.0
17301730
"@types/react": ^18.2.44
1731+
core-js: ^3.37.1
17311732
crypto-js: ^4.2.0
17321733
del-cli: ^5.1.0
17331734
eslint: ^8.51.0
@@ -4701,6 +4702,13 @@ __metadata:
47014702
checksum: 5e7430329358bced08c30950512d2081aea0a5652b4c5892cbb3c4a6db05b0d3893a191a955162a07fdb5f4fe74e61b6429fdb503f54e062336d76e43c9555d9
47024703
languageName: node
47034704
linkType: hard
4705+
4706+
"core-js@npm:^3.37.1":
4707+
version: 3.37.1
4708+
resolution: "core-js@npm:3.37.1"
4709+
checksum: 2d58a5c599f05c3e04abc8bc5e64b88eb17d914c0f552f670fb800afa74ec54b4fcc7f231ad6bd45badaf62c0fb0ce30e6fe89cedb6bb6d54e6f19115c3c17ff
4710+
languageName: node
4711+
linkType: hard
47044712

47054713
"core-util-is@npm:~1.0.0":
47064714
version: 1.0.3

0 commit comments

Comments
 (0)