diff --git a/apps/builder/src/features/auth/lib/providers.ts b/apps/builder/src/features/auth/lib/providers.ts index 76fe743d4..875cc65b4 100644 --- a/apps/builder/src/features/auth/lib/providers.ts +++ b/apps/builder/src/features/auth/lib/providers.ts @@ -132,9 +132,9 @@ if (env.CUSTOM_OAUTH_ISSUER) { profile(profile) { const user = { id: getAtPath(profile, env.CUSTOM_OAUTH_USER_ID_PATH), - name: getAtPath(profile, env.CUSTOM_OAUTH_USER_NAME_PATH), + name: getAtPath(profile, env.CUSTOM_OAUTH_USER_NAME_PATH) ?? null, email: getAtPath(profile, env.CUSTOM_OAUTH_USER_EMAIL_PATH), - image: getAtPath(profile, env.CUSTOM_OAUTH_USER_IMAGE_PATH), + image: getAtPath(profile, env.CUSTOM_OAUTH_USER_IMAGE_PATH) ?? null, }; return userSchema .pick({ id: true, email: true, name: true, image: true })