diff --git a/server/src/core/server/services/oidc/oidc.ts b/server/src/core/server/services/oidc/oidc.ts index d4a99f1001..51e20d9a7d 100644 --- a/server/src/core/server/services/oidc/oidc.ts +++ b/server/src/core/server/services/oidc/oidc.ts @@ -50,10 +50,10 @@ export const OIDCIDTokenSchema = Joi.object() exp: Joi.number().required(), email: Joi.string().lowercase().email(), email_verified: Joi.boolean().default(false), - picture: Joi.string(), - name: Joi.string(), - nickname: Joi.string(), - preferred_username: Joi.string(), + picture: Joi.string().optional(), + name: Joi.string().optional(), + nickname: Joi.string().optional(), + preferred_username: Joi.string().optional(), nonce: Joi.string(), }) .fork(