Describes a configured identifier field (e.g. email, phone, or username)
for use in a signup form or authentication flow.
export interface Identifier {
/**
* The type of identifier, such as `'email'`, `'phone'`, or `'username'`.
*
* @see IdentifierType
*/
type: IdentifierType;
/**
* Whether this identifier is required for signup.
*/
required: boolean;
}
Example
const emailIdentifier: Identifier = {
type: 'email',
required: true
};
Properties
Whether this identifier is required for signup.
The type of identifier, such as 'email', 'phone', or 'username'.Type