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

Apple login issue with ExchangeNativeSocialOptions userProfile #852

Open
6 tasks done
nkhil opened this issue Jan 19, 2024 · 0 comments
Open
6 tasks done

Apple login issue with ExchangeNativeSocialOptions userProfile #852

nkhil opened this issue Jan 19, 2024 · 0 comments
Labels
bug This points to a verified bug in the code

Comments

@nkhil
Copy link

nkhil commented Jan 19, 2024

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 nkhil added the bug This points to a verified bug in the code label Jan 19, 2024
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

1 participant