feat: removed pulling displayName from facebook/google (#2301)

This commit is contained in:
Wyatt Johnson
2019-05-07 22:34:31 +00:00
committed by GitHub
parent 2b878b224b
commit 9972253056
2 changed files with 2 additions and 4 deletions
@@ -40,7 +40,7 @@ export default class FacebookStrategy extends OAuth2Strategy<
protected async findOrCreateUser(
tenant: Tenant,
integration: Required<GQLFacebookAuthIntegration>,
{ id, photos, emails, displayName }: Profile,
{ id, photos, emails }: Profile,
now = new Date()
) {
// Create the user profile that will be used to lookup the User.
@@ -76,7 +76,6 @@ export default class FacebookStrategy extends OAuth2Strategy<
this.mongo,
tenant,
{
username: displayName,
role: GQLUSER_ROLE.COMMENTER,
email,
emailVerified,
@@ -39,7 +39,7 @@ export default class GoogleStrategy extends OAuth2Strategy<
protected async findOrCreateUser(
tenant: Tenant,
integration: Required<GQLGoogleAuthIntegration>,
{ id, photos, emails, displayName }: Profile,
{ id, photos, emails }: Profile,
now = new Date()
) {
// Create the user profile that will be used to lookup the User.
@@ -75,7 +75,6 @@ export default class GoogleStrategy extends OAuth2Strategy<
this.mongo,
tenant,
{
username: displayName,
role: GQLUSER_ROLE.COMMENTER,
email,
emailVerified,