Now passes oAuth profile to insert() and update()

The oAuth profile for a service is now passed to update() and insert() when signing in via oAuth (or linking accounts).

e.g. `update(user, oAuthProfile)` and `insert(user, oAuthProfile)`

This provides a way to also capture oAuth provider specific fields, such as avatar, location, organisation, etc. as needed.

Thanks to @gielcobben for raising this.
This commit is contained in:
Iain Collins
2018-02-02 18:04:13 +00:00
parent 5fe3f09d47
commit afcae75aaf
6 changed files with 50 additions and 27 deletions

View File

@@ -17,7 +17,7 @@
"mongodb": "^3.0.1",
"nedb": "^1.8.0",
"next": "^4.2.3",
"next-auth": "^1.1.1",
"next-auth": "^1.3.0",
"next-auth-client": "^1.1.1",
"nodemailer": "^4.4.2",
"nodemailer-direct-transport": "^3.3.2",