userExists method

Future<PublicUserInfo> userExists(
  1. String identifier
)

Checks if the provided identifier exists for the application. This method can be used to determine whether to register or log in a user.

It also checks if the app supports the provided identifier type (e.g., it will throw an error if a phone number is supplied to an app that only supports emails as an identifier).

Returns: A Future<PublicUserInfo> object containing user information if the identifier exists

Implementation

Future<PublicUserInfo> userExists(String identifier) {
  return PassageFlutterPlatform.instance.identifierExists(identifier);
}