Implementation of Social Authentication III - Does not login on first try

What is your hint or solution suggestion?

As we are using the node driver for Mongo, the appropriate options object should be:

{ upsert: true, returnOriginal: false }

Otherwise, the document returned is the original (null) which will fail to login.

Challenge: Implementation of Social Authentication III

Link to the challenge:

1 Like