Skip to content

Commit

Permalink
Merge pull request #23 from cryptr-auth/fix/jwt-decode-atob
Browse files Browse the repository at this point in the history
🐛 Fix / atob for jwt-decode
  • Loading branch information
zail59 authored Jul 25, 2024
2 parents 074a74f + f18468a commit af4f7db
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions src/utils/jwt.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'core-js/stable/atob';
import { jwtDecode } from 'jwt-decode';
import { JWT, RS256 } from './constants';
import type { PreparedCryptrConfig } from './interfaces';
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit af4f7db

Please sign in to comment.