Skip to content

TypeError: Cannot read property 'find' of undefined #374

Description

@freezy

View details in Rollbar: https://rollbar.com/freezy/server/items/53/


TypeError: Cannot read property 'find' of undefined
  File "/var/www/server/production/v3.2.3/src/app/authentication/strategies/google.strategy.ts", line 106, in GoogleStrategy.findPrimary
    		const item = items.find((n: any) => n.metadata && n.metadata.primary);
  File "/var/www/server/production/v3.2.3/src/app/authentication/strategies/google.strategy.ts", line 83, in GoogleStrategy.normalizeProfile
    		const name = this.findPrimary(profile.names);
  File "/var/www/server/production/v3.2.3/src/app/authentication/strategies/strategy.ts", line 59, in GoogleStrategy.authenticateOAuth
    		const user = await this.verifyCallbackOAuth(ctx, this.name, this.providerName, this.normalizeProfile(profile));
  File "<anonymous>", line unknown, in <unknown>
  File "internal/process/next_tick.js", line 189, in process._tickCallback

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions