directLoginAction method

  1. @Deprecated("Use directLogin(url), socialLogin(provider), or customSocialLogin(id) instead.")
Future<void> directLoginAction(
  1. String type,
  2. String data, {
  3. bool ephemeralSession = true,
  4. Map<String, String>? additionalQueryParams,
})

Performs a direct login action.

Deprecated: Use directLogin for URL-based login, socialLogin for social authentication, or customSocialLogin for custom social login instead.

This method supports different types of direct login:

  • "direct": Uses a URL string for login.

  • "social-login": Requires a provider (e.g., Google, LinkedIn, Facebook, GitHub, Apple, etc.).

  • "custom-social-login": Requires a configured UUID.

  • type: The type of direct login ("direct", "social-login", or "custom-social-login").

  • data: The associated data for the login type (e.g., a URL, provider name, or UUID).

  • ephemeralSession: (Optional) Whether the session should be ephemeral (not shared with the default browser). Defaults to true.

  • additionalQueryParams: (Optional) Additional query parameters. Defaults to null.

Throws a FronteggException if the login process encounters a platform-specific error.

Returns a Future that completes when the login action is finished.

Implementation

@Deprecated(
    "Use directLogin(url), socialLogin(provider), or customSocialLogin(id) instead.")
Future<void> directLoginAction(
  String type,
  String data, {
  bool ephemeralSession = true,
  Map<String, String>? additionalQueryParams,
}) =>
    _runAction(() async {
      return FronteggPlatform.instance.directLoginAction(
        type,
        data,
        ephemeralSession: ephemeralSession,
        additionalQueryParams: additionalQueryParams,
      );
    });