Saltearse al contenido

schemas/config/auth

Esta página aún no está disponible en tu idioma.

type AuthProviders = z.infer<typeof authProviderSchema>;

Defined in: studiocms/packages/studiocms/src/schemas/config/auth.ts:30^

const authConfigSchema: ZodDefault<ZodOptional<ZodObject<{
enabled: ZodDefault<ZodOptional<ZodBoolean>>;
providers: ZodDefault<ZodOptional<ZodObject<{
usernameAndPassword: ZodDefault<ZodOptional<ZodBoolean>>;
usernameAndPasswordConfig: ZodDefault<ZodOptional<ZodObject<..., ..., ..., ..., ...>>>;
}, "strip", ZodTypeAny, {
usernameAndPassword: boolean;
usernameAndPasswordConfig: {
allowUserRegistration: boolean;
};
}, {
usernameAndPassword: boolean;
usernameAndPasswordConfig: {
allowUserRegistration: ... | ... | ...;
};
}>>>;
}, "strip", ZodTypeAny, {
enabled: boolean;
providers: {
usernameAndPassword: boolean;
usernameAndPasswordConfig: {
allowUserRegistration: boolean;
};
};
}, {
enabled: boolean;
providers: {
usernameAndPassword: boolean;
usernameAndPasswordConfig: {
allowUserRegistration: boolean;
};
};
}>>>;

Defined in: studiocms/packages/studiocms/src/schemas/config/auth.ts:35^


const authProviderSchema: ZodDefault<ZodOptional<ZodObject<{
usernameAndPassword: ZodDefault<ZodOptional<ZodBoolean>>;
usernameAndPasswordConfig: ZodDefault<ZodOptional<ZodObject<{
allowUserRegistration: ZodDefault<ZodOptional<ZodBoolean>>;
}, "strip", ZodTypeAny, {
allowUserRegistration: boolean;
}, {
allowUserRegistration: boolean;
}>>>;
}, "strip", ZodTypeAny, {
usernameAndPassword: boolean;
usernameAndPasswordConfig: {
allowUserRegistration: boolean;
};
}, {
usernameAndPassword: boolean;
usernameAndPasswordConfig: {
allowUserRegistration: boolean;
};
}>>>;

Defined in: studiocms/packages/studiocms/src/schemas/config/auth.ts:18^