Skip to content
pubscout

logto_dart_sdk

4.0.0, released 3 months ago by an unverified publisher

Official Logto Flutter SDK for OAuth2 authentication flows.

Unverified publisher
$ flutter pub add logto_dart_sdk
Source repository

What it does

Provides a client to integrate Logto authentication into Flutter applications. Handles sign-in, sign-out, and OAuth2 flows using browser-based authentication.

AI-written summary of version 4.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a Flutter app using Logto for authentication.
  • You need to handle OAuth2 sign-in and sign-out flows easily.

Skip it when

  • You are not using Logto as your identity provider.
  • You want a purely custom built-in form authentication without web redirects.

Strengths

  • Official SDK supported by Logto.
  • Migrates existing stored tokens automatically on upgrade.

Weaknesses

  • Requires specific native Android toolchain configurations and AGP versions.
  • Platform setup required for handling web authentication callbacks.

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
Yes (build_runner)
Direct dependencies
7

Requires Android manifest updates, setting compileSdk 36 and minSdkVersion 24, and configuring taskAffinity on exported activities.

final logtoConfig = const LogtoConfig(
  endpoint: "<your-logto-endpoint>",
  appId: "<your-app-id>"
);

logtoClient = LogtoClient(
  config: logtoConfig,
);

await logtoClient.signIn(redirectUri);

Alternatives

Packages that do the same job and could replace logto_dart_sdk.

  • flutter_appauth

    Flutter plugin for OAuth 2.0 and OpenID Connect authentication using native AppAuth SDKs.

  • auth0_flutter

    Auth0 SDK for Flutter to integrate Auth0 authentication into mobile, desktop, and web apps.

  • flutter_line_sdk

    Flutter plugin to access native LINE SDKs for LINE Login integration.

  • at_client

    Client SDK for building apps on the atProtocol with end-to-end encryption.

Works with

Packages commonly used together with logto_dart_sdk: ones it builds on, ones built on it, and its own family.