Skip to content

Commit

Permalink
google oauth works
Browse files Browse the repository at this point in the history
  • Loading branch information
cigdemaybar committed Apr 25, 2017
1 parent 723fbce commit 4c0d96e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/models/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ module.exports = db => {
.then(({ oauth, user }) => user ||
OAuth.User.create({
name: profile.displayName,
accountType: 'user',
email: profile.emails[0].value
})
.then(user => db.Promise.props({
user,
Expand Down

0 comments on commit 4c0d96e

Please sign in to comment.