connectWithPopup method

  1. @override
Future<EarthoCredentials?> connectWithPopup(
  1. String accessId
)
override

Implementation

@override
Future<EarthoCredentials?> connectWithPopup(String accessId) async {
  if(earthoInstance == null)return null;
  final rawJson = await promiseToFuture(earthoInstance?.connectWithPopup(
      PopupConnectOptions(access_id: accessId), PopupConfigOptions()));
  if (rawJson == null) return null;
  // final decodedJson = jsonDecode(rawJson);
  return EarthoCredentials.fromJSON(rawJson);
}