Closed
Description
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
Labels
No labels