Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

add safety check for username in github strategy

Amruth Pillaiec77d13ebd39
diff --git a/apps/server/src/auth/strategy/github.strategy.ts b/apps/server/src/auth/strategy/github.strategy.ts
index d6f6398e0..b1f6ed30c 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 =