identifierExists method

  1. @override
Future<PassageUser?> identifierExists(
  1. String identifier
)
override

Implementation

@override
Future<PassageUser?> identifierExists(String identifier) async {
  try {
    final resultPromise = passage.identifierExists(identifier);
    final jsObject = await js_util.promiseToFuture(resultPromise);
    return jsObject != null ? PassageUser.fromJson(jsObject) : null;
  } catch (e) {
    throw PassageError.fromObject(
        object: e, overrideCode: PassageErrorCode.identifierExistsError);
  }
}