remoteAuthRequest static method

Future<void> remoteAuthRequest({
  1. required String url,
})

Lets the user authorize the app to access the bridge remotely.

This is step 1. Step 2 is TokenService.fetchRemoteToken.

Implementation

static Future<void> remoteAuthRequest({
  required String url,
}) async {
  final Uri uri = Uri.parse(url);

  if (!await canLaunchUrl(uri)) return;

  await launchUrl(
    uri,
    mode: LaunchMode.externalApplication,
  );
}