Skip to content

Old bug still here: unwanted authData validation #6228

Closed
@SebC99

Description

@SebC99

This bug #3867 is still here even with #3783 and #3872 fixes.
The reason why is in the RestWrite.js file:

if (!_.isEqual(providerData, userAuthData)) {
    mutatedAuthData[provider] = providerData;
}

When tested with facebook, the userAuthData comes from the saved user (MongoDB in my case), and it includes a token and an expiration date which is a Date object.
But the providerData which comes from the rest request from the SDK includes the same token and expiration date, but the expiration date is a string in that case. So we don't have equality of object.

There should be a conversion somewhere, but what's the best place to do it?

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

    Issue actions