Skip to content

Authentication works, but UUID is null #212

Open
@aronmarriott-smith

Description

@aronmarriott-smith

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: 'john.doe@gmail.com',
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: 'john.doe@gmail.com',
first_name: 'John',
last_name: 'Doe' 
}

So, how do we get the user id from Facebook & Google?

Activity

aronmarriott-smith

aronmarriott-smith commented on May 31, 2018

@aronmarriott-smith
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @aronmarriott-smith

        Issue actions

          Authentication works, but UUID is null · Issue #212 · fullstackreact/react-native-oauth