Skip to content

Commit

Permalink
Merge pull request #49 from CBIIT/google_last_name
Browse files Browse the repository at this point in the history
if last-name is not undefined, it will throw an error.
  • Loading branch information
AustinSMueller authored May 31, 2023
2 parents 9765707 + 97694ee commit e2b206d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idps/google.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let client = {
const payload = ticket.getPayload();
const name = payload.given_name;
const email = payload.email;
return { name, lastName: payload.family_name, tokens, email, idp: GOOGLE};
return { name, lastName: payload.family_name ? payload.family_name : '', tokens, email, idp: GOOGLE};
},
authenticated: async (tokens) => {
try {
Expand Down

0 comments on commit e2b206d

Please sign in to comment.