react-native-auth0
react-native-auth0 copied to clipboard
Apple login issue with ExchangeNativeSocialOptions userProfile
Checklist
- [X] The issue can be reproduced in the react-native-auth0 sample app (or N/A).
- [X] I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- [X] I have looked into the API documentation and have not found a suitable solution or answer.
- [X] I have searched the issues and have not found a suitable solution or answer.
- [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- [X] I agree to the terms within the Auth0 Code of Conduct.
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