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

jwt decode is not working in react native #291

Closed
4 tasks done
vish3232 opened this issue Dec 24, 2023 · 2 comments
Closed
4 tasks done

jwt decode is not working in react native #291

vish3232 opened this issue Dec 24, 2023 · 2 comments
Labels
bug This points to a verified bug in the code

Comments

@vish3232
Copy link

Checklist

  • I have looked into the Readme and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

if i install jwt decode npm library in react native then it not working they are giving error of atob does not exits if o import that then they cause another problem for navigation

Reproduction

npm install jwt-decode
import {jwtDecode} from 'wt-decode'
const decode = jwtDecode('token')

Additional context

ljkbl

jwt-decode version

4.0.0

Which browsers have you tested in?

Chrome, Other

@vish3232 vish3232 added the bug This points to a verified bug in the code label Dec 24, 2023
@jonkoops
Copy link
Contributor

Duplicate of #241, see also the polyfilling section of the README.

@frederikprijck
Copy link
Member

Closing because duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

No branches or pull requests

3 participants