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

Authentication works, but UUID is null #212

Open
aronmarriott-smith opened this issue May 29, 2018 · 1 comment
Open

Authentication works, but UUID is null #212

aronmarriott-smith opened this issue May 29, 2018 · 1 comment

Comments

@aronmarriott-smith
Copy link

aronmarriott-smith commented May 29, 2018

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?

@aronmarriott-smith
Copy link
Author

Sorry to bump this issue, but is anyone else experiencing this problem? Does anyone have a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant