dispatchEnvelope method

  1. @override
Future<bool> dispatchEnvelope(
  1. String url
)
override

/////* PUBLIC METHODS */////////

Implementation

@override
Future<bool> dispatchEnvelope(String url) async {
  _appKit.core.logger.d('[$runtimeType] dispatchEnvelope $url');
  final envelope = ReownCoreUtils.getSearchParamFromURL(url, 'wc_ev');
  if (envelope.isNotEmpty) {
    await _appKit.dispatchEnvelope(url);
    return true;
  }

  final state = ReownCoreUtils.getSearchParamFromURL(url, 'state');
  if (state.isNotEmpty) {
    _magicService.completeSocialLogin(url: url);
    return true;
  }

  return false;
}