diff --git a/apps/backend/src/oauth/utils.tsx b/apps/backend/src/oauth/utils.tsx index 6ba18227d..1072a10b9 100644 --- a/apps/backend/src/oauth/utils.tsx +++ b/apps/backend/src/oauth/utils.tsx @@ -13,10 +13,6 @@ const OAuthUserInfoSchema = yupObject({ export function validateUserInfo( userInfo: Partial>, - options?: { expectNoEmail?: boolean } ): OAuthUserInfo { - if (!options?.expectNoEmail && !userInfo.email) { - throw new Error("Email is required"); - } return OAuthUserInfoSchema.validateSync(userInfo); }