Skip to content

authData:facebook vs _auth_data_facebook? #755

@michaelbina

Description

@michaelbina

Before migrating to parse-server on heroku, all of the Facebook auth data was stored in the authData field for a User object like so:

    "authData": {
        "facebook":  {
            "id": "10104620262907903",
            "access_token": "...",
            "expiration_date": "4001-01-01T00:00:00.000Z"
        },
    }

After migrating, I am seeing the field _auth_data_facebook like so:

    "_auth_data_facebook": {
        "id": "10104620262907903",
        "access_token": "...",
        "expiration_date": "4001-01-01T00:00:00.000Z"
    },

First, why was this changed?

Second, I am having problems accessing the _auth_data_facebook from Parse Cloud.

A search for a user in parse cloud, returns the user object without the _auth_data_facebook field and with the facebook field in authData set to nil. Also my call to Parse.FacebookUtils.isLinked(user) returns false even thought its true and I have no way to retrieve the access token from the user object.

Any help would be appreciated in figuring out what I'm doing wrong or if this is a bug. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions