Skip to content

v5.0.1 authoriseWithSMS fails with [InvalidTokenError: Invalid token specified: must be a string] #1357

@giantslogik

Description

@giantslogik

Checklist

Description

I upgraded react-native-auth0 from v4.6.0 to v5.0.1.

authorizeWithSMS now fails with "[InvalidTokenError: Invalid token specified: must be a string]"

My code is the same as before:

          creds = await authorizeWithSMS({
            phoneNumber: '.....',
            code: '.....',
            scope: 'offline_access',
            audience: '.....'
          });

Reproduction

  1. Send SMS Code using: sendSMSCode({ phoneNumber: '......' });
  2. Sign in with phone number using the authorizeWithSMS
          creds = await authorizeWithSMS({
            phoneNumber: '.....',
            code: '.....',
            scope: 'offline_access',
            audience: '.....'
          });

I always get the error [InvalidTokenError: Invalid token specified: must be a string]

Additional context

No response

react-native-auth0 version

5.0.1

React Native version

0.80.2

Expo version

No response

Platform

iOS

Platform version(s)

18.3

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