createUser method
Creates a new user with the provided identifier and optional metadata. This method should be used to register a new user.
The identifier
is required to uniquely identify the user (e.g., email or phone number).
The userMetadata
can be used to provide additional information about the user.
Returns:
A Future<PublicUserInfo>
object containing the created user's information
Parameters:
identifier
: The identifier for the new user (e.g., email or phone number).userMetadata
: Optional metadata associated with the user.
Implementation
Future<PublicUserInfo> createUser(String identifier, {Metadata? userMetadata}) {
return PassageFlutterPlatform.instance.createUser(identifier, userMetadata: userMetadata);
}