bnoguchi/mongoose-auth — pull request #105 by STRML (2012-05-31 16:43:54+00:00)
Title: Facebook update support

Added update support for Facebook: subsequent logins will update stored access_token and fb metadata.

I noticed the FB data stored by mongoose-auth on first login quickly becomes stale. This addition to findOrCreateUser will update the stored data with new data when available.

I also added an 'isNew' field to the schema as well. This is true if and only if the user is completely fresh. We use this locally for asking the user to verify certain data, e.g. email address.