react-native-oauth
react-native-oauth copied to clipboard
Authentication works, but UUID is null
We are having an issue that has developed recently after using this library for the last 6 months. We have authentication working, but UUID is being returned as null.
The issue is happening for both Facebook and Google on iOS and Android. The after authenticating the request for Facebook looks like the below:
'/me?fields=name,email,first_name,last_name'
And we are using the flowing scopes for Facebook:
scopes = {scopes: 'email'};
The response object looks like this:
{
uuid: null,
access_token: '03T8lVdOcnZ6Dm4Ea3Hlkz3RY8JdL2zlXuWhd1A1xDM3e0b7MASeLKc3iACrETZNDCBUEEBG8LU7u9TZeNZkaahWD9ibmJ4dmXpxJB935APnAolEFDdfKW6KtSJ51yYhzovUUiMCfik1TJltuS9jZFWHaOYV3koRp5ksO03ueuL9CUxNcwAGQ8UFE',
email: '[email protected]',
first_name: 'John',
last_name: 'Doe'
}
It's the same story for Google as well. This is the endpoint after authenticating:
https://www.googleapis.com/plus/v1/people/me
And we are using the flowing scopes for Google:
scopes = (Platform.OS === 'ios') ? {scopes: 'email+profile'} : {scopes: 'profile email'};
The response object looks like this:
{
uuid: null,
access_token: '03T8lVdOcnZ6Dm4Ea3Hlkz3RY8JdL2zlXuWhd1A1xDM3e0b7MASeLKc3iACrETZNDCBUEEBG8LU7u9TZeNZkaahWD9ibmJ4dmXpxJB935APnAolEFDdfKW6KtSJ51yYhzovUUiMCfik1TJltuS9jZFWHaOYV3koRp5ksO03ueuL9CUxNcwAGQ8UFE'',
email: '[email protected]',
first_name: 'John',
last_name: 'Doe'
}
So, how do we get the user id from Facebook & Google?
Sorry to bump this issue, but is anyone else experiencing this problem? Does anyone have a solution?