Interface: UsernameAndPasswordConfig
Username and password auth configuration.
Extends
BaseAuthMethodConfig
Properties
userSignupFields?
optionaluserSignupFields?:Reference<AnyObject>
Object that defines extra fields to save on the user during signup
(e.g. firstName, address). Each field name must exist on the
configured Auth.userEntity.
Each field function receives the data sent from the client and returns
the value Wasp saves to the database. For social auth, this data includes
provider-specific profile information. If the value is invalid, throw an
error. The password field is excluded from this object and handled by
Wasp's auth backend.
See Signup Fields Customization.
Inherited from
BaseAuthMethodConfig.userSignupFields