authenticate static method

Future<Uri?> authenticate(
  1. String url, {
  2. required String callbackScheme,
  3. bool ephemeral = false,
  4. Duration timeout = const Duration(minutes: 5),
})

OAuth / SSO: opens url and returns the redirect to callbackScheme, null if cancelled. Android/desktop custom schemes: dart run u:app deep-link myapp. await ULaunch.authenticate(authUrl, callbackScheme: "myapp")

Implementation

static Future<Uri?> authenticate(String url, {required String callbackScheme, bool ephemeral = false, Duration timeout = const Duration(minutes: 5)}) =>
    ULaunchChannel.authenticate(url, callbackScheme: callbackScheme, ephemeral: ephemeral, timeout: timeout);