initEartho method

  1. @override
Future initEartho({
  1. required String clientId,
  2. required String clientSecret,
  3. List<String>? enabledProviders,
})
override

Init the sdk

Implementation

@override
Future initEartho(
    {required String clientId,
    required String clientSecret,
    List<String>? enabledProviders}) async {
  earthoInstance = await promiseToFuture(interop
      .createEarthoClient(interop.EarthoOneOptions(client_id: clientId)));

  earthoInstance?.handleRedirectCallback();
}