Skip to content

Commit

Permalink
Fix STACK-BACKEND-67
Browse files Browse the repository at this point in the history
  • Loading branch information
N2D4 committed Jan 13, 2025
1 parent 20e3922 commit 3cd66c4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apps/backend/src/oauth/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ const OAuthUserInfoSchema = yupObject({

export function validateUserInfo(
userInfo: Partial<yup.InferType<typeof OAuthUserInfoSchema>>,
options?: { expectNoEmail?: boolean }
): OAuthUserInfo {
if (!options?.expectNoEmail && !userInfo.email) {
throw new Error("Email is required");
}
return OAuthUserInfoSchema.validateSync(userInfo);
}

0 comments on commit 3cd66c4

Please sign in to comment.