Skip to content

v4.0.0 React Native support - property atob doesn't exist #241

@hrastnik

Description

@hrastnik

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

React Native doesn't provide implementations for atob and btoa so the library fails when we attempt to use version 4.0.0.

Reproduction

Install a fresh react-native project with jwt-decode and try using it.

Additional context

No response

jwt-decode version

4.0.0

Which browsers have you tested in?

Other

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions