diff --git a/apps/server/src/auth/strategy/github.strategy.ts b/apps/server/src/auth/strategy/github.strategy.ts index d6f6398e..b1f6ed30 100644 --- a/apps/server/src/auth/strategy/github.strategy.ts +++ b/apps/server/src/auth/strategy/github.strategy.ts @@ -31,7 +31,7 @@ export class GitHubStrategy extends PassportStrategy(Strategy, "github") { let user: User | null = null; - if (!email) throw new BadRequestException(); + if (!email || !username) throw new BadRequestException(); try { const user =