logto_dart_sdk
4.0.0, released 3 months ago by an unverified publisher
Official Logto Flutter SDK for OAuth2 authentication flows.
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.
92Compare - auth0_flutter
Auth0 SDK for Flutter to integrate Auth0 authentication into mobile, desktop, and web apps.
90Compare - flutter_line_sdk
Flutter plugin to access native LINE SDKs for LINE Login integration.
86Compare - at_client
Client SDK for building apps on the atProtocol with end-to-end encryption.
84Compare
Works with
Packages commonly used together with logto_dart_sdk: ones it builds on, ones built on it, and its own family.
- cryptologto_dart_sdk depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- json_annotationlogto_dart_sdk depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- flutter_secure_storagelogto_dart_sdk depends on itSecure key-value storage using platform-specific secure mechanisms
- flutter_web_auth_2logto_dart_sdk depends on itFlutter plugin for authenticating a user with a web service.
- joselogto_dart_sdk depends on itJavascript Object Signing and Encryption library supporting JWE, JWS, JWK and JWT.