authorizeWith method

  1. @override
Future<void> authorizeWith(
  1. PassageSocialConnection connection
)
override

Implementation

@override
Future<void> authorizeWith(PassageSocialConnection connection) async {
  try {
    final resultPromise = passage.authorizeWith(connection.value);
    await js_util.promiseToFuture(resultPromise);
    return;
  } catch (e) {
    throw PassageError.fromObject(
        object: e, overrideCode: PassageErrorCode.socialAuthError);
  }
}