Optional
Returns a list of enabled identifiers (e.g. email, phone, username) based on the current transaction state.
Identifiers may be required or optional depending on the connection strategy and configuration provided during the authentication or signup flow.
An array of enabled Identifier objects, or null if the transaction is not initialized.
null
const identifiers = authClient.getSignupIdentifiers();if (identifiers) { identifiers.forEach(({ type, required }) => { console.log(`${type} is ${required ? 'required' : 'optional'}`); });} Copy
const identifiers = authClient.getSignupIdentifiers();if (identifiers) { identifiers.forEach(({ type, required }) => { console.log(`${type} is ${required ? 'required' : 'optional'}`); });}
Identifier
Returns a list of enabled identifiers (e.g. email, phone, username) based on the current transaction state.
Identifiers may be required or optional depending on the connection strategy and configuration provided during the authentication or signup flow.