Skip to content

Commit

Permalink
Merge pull request hapijs#254 from AdriVanHoudt/google-profile-fix
Browse files Browse the repository at this point in the history
fix mapping of google profile fixes hapijs#251
  • Loading branch information
ldesplat authored Aug 21, 2016
2 parents 56c4bf8 + b1cb92a commit 837052e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/providers/google.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports = module.exports = function (options) {
get('https://www.googleapis.com/oauth2/v3/userinfo', null, (profile) => {

credentials.profile = {
id: profile.id,
id: profile.sub,
displayName: profile.name,
name: {
given_name: profile.given_name,
Expand Down
2 changes: 1 addition & 1 deletion test/providers/google.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('google', () => {
Hoek.merge(custom, provider);

const profile = {
id: '1234567890',
sub: '1234567890',
name: 'steve smith',
given_name: 'steve',
family_name: 'smith',
Expand Down

0 comments on commit 837052e

Please sign in to comment.