Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix / atob for jwt-decode #23

Merged
merged 3 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading