Aller au contenu

schemas/config/auth

Ce contenu n’est pas encore disponible dans votre langue.

type AuthProviders = z.infer<typeof authProviderSchema>;

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

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

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


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

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