You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to decode a jwt token sent from the backend in a React Native expo app and it keeps throwing an error but sure works in a web environment. I expected this to work but it keeps throwing the error "InvalidTokenError: Invalid token specified: invalid base64 for part #2 (Property 'atob' doesn't exist)]"
I have tried all the best I can to solve this. Please help.
Reproduction
Create a react native expo applicatio
Use the package in the react native expo application to decode any jwt token at all.
Print the error to the console.
Additional context
No response
jwt-decode version
4.0.0
Which browsers have you tested in?
Other
The text was updated successfully, but these errors were encountered:
Lastly, we reached out to hopefully get this resolved in react native to eventually no longer need any polyfil, see facebook/hermes#1178, be sure to upvote that to show interest in the feature.
Checklist
Description
I am trying to decode a jwt token sent from the backend in a React Native expo app and it keeps throwing an error but sure works in a web environment. I expected this to work but it keeps throwing the error "InvalidTokenError: Invalid token specified: invalid base64 for part #2 (Property 'atob' doesn't exist)]"
I have tried all the best I can to solve this. Please help.
Reproduction
Additional context
No response
jwt-decode version
4.0.0
Which browsers have you tested in?
Other
The text was updated successfully, but these errors were encountered: