react-native-auth0 icon indicating copy to clipboard operation
react-native-auth0 copied to clipboard

Apple login issue with ExchangeNativeSocialOptions userProfile

Open nkhil opened this issue 2 years ago • 0 comments

Checklist

Description

In the ExchangeNativeSocialOptions, userProfile is typed as `object see here

However, when I pass in an object into it, the SDK accepts it, however I get the following error within auth0:

user_profile must be an object encoded as a JSON string

I was using an older version of the library, where I was passing a JSON.stringified object into the userProfile parameter. Upgrading the SDK and passing in an object resulting in an error.

Is there a setting within Auth0 that I need to modify? or is this type sometime inconsistent with auth0?

Reproduction

Use the latest version of the SDK (v3.x.x) Pass in an object into the optional userProfile as per this test

eg:

userProfile: {
          name: {
            firstName: 'John',
            lastName: 'Smith',
          },
        },

Additional context

No response

react-native-auth0 version

^3.1.0

React Native version

^0.72.6

Expo version

No response

Platform

iOS

Platform version(s)

18

nkhil avatar Jan 19 '24 18:01 nkhil