schemas/config/auth
此内容尚不支持你的语言。
Type Aliases
Section titled “Type Aliases”AuthProviders
Section titled “AuthProviders”type AuthProviders = { usernameAndPassword: boolean; usernameAndPasswordConfig: { allowUserRegistration: boolean; };};
Defined in: studiocms/packages/studiocms/src/schemas/config/auth.ts:30^
Type Declaration
Section titled “Type Declaration”usernameAndPassword
Section titled “usernameAndPassword”usernameAndPassword: boolean;
Username and Password Auth Provider
usernameAndPasswordConfig
Section titled “usernameAndPasswordConfig”usernameAndPasswordConfig: { allowUserRegistration: boolean;} = localUsernameAndPasswordConfig;
usernameAndPasswordConfig.allowUserRegistration
Section titled “usernameAndPasswordConfig.allowUserRegistration”allowUserRegistration: boolean;
Allow User Registration - Allows users to register an account
Default
Section titled “Default”false
Variables
Section titled “Variables”authConfigSchema
Section titled “authConfigSchema”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^
authProviderSchema
Section titled “authProviderSchema”const authProviderSchema: ZodDefault<AuthProviders>;
Defined in: studiocms/packages/studiocms/src/schemas/config/auth.ts:18^
localUsernameAndPasswordConfig
Section titled “localUsernameAndPasswordConfig”const localUsernameAndPasswordConfig: ZodDefault<ZodOptional<ZodObject<{ allowUserRegistration: ZodDefault<ZodOptional<ZodBoolean>>;}, "strip", ZodTypeAny, { allowUserRegistration: boolean;}, { allowUserRegistration?: boolean;}>>>;
Defined in: studiocms/packages/studiocms/src/schemas/config/auth.ts:3^