Skip to main content
A string union type representing the valid methods for identifying a user during authentication. Used to constrain identifier inputs to one of three specific values.
type IdentifierType = "phone" | "email" | "username";

Values

"phone"
IdentifierType
A phone number identifier.
"email"
IdentifierType
An email address identifier.
"username"
IdentifierType
A username identifier.