@daveyplate/better-auth-ui
Version:
Plug & play shadcn/ui components for better-auth
39 lines (32 loc) • 775 B
text/typescript
import type { PasswordValidation } from "./password-validation"
export type CredentialsOptions = {
/**
* Enable or disable the Confirm Password input
* @default false
*/
confirmPassword?: boolean
/**
* Enable or disable Forgot Password flow
* @default true
*/
forgotPassword?: boolean
/**
* Customize the password validation
*/
passwordValidation?: PasswordValidation
/**
* Enable or disable Remember Me checkbox
* @default false
*/
rememberMe?: boolean
/**
* Enable or disable Username support
* @default false
*/
username?: boolean
/**
* Make username required when username is enabled
* @default true
*/
usernameRequired?: boolean
}