{"id":18612984,"url":"https://github.com/logto-io/dart","last_synced_at":"2025-08-16T19:09:59.003Z","repository":{"id":61639369,"uuid":"525215095","full_name":"logto-io/dart","owner":"logto-io","description":"Logto Flutter SDKs.","archived":false,"fork":false,"pushed_at":"2025-07-31T17:15:04.000Z","size":323,"stargazers_count":22,"open_issues_count":11,"forks_count":16,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-31T20:35:48.577Z","etag":null,"topics":["android","authentication","authorization","dart","flutter","ios","jwt","logto","mfa","multi-tenant","oauth2","oidc","saml","sso"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logto-io.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"logto-io"}},"created_at":"2022-08-16T03:15:03.000Z","updated_at":"2025-05-14T20:56:18.000Z","dependencies_parsed_at":"2023-09-26T11:35:56.036Z","dependency_job_id":"a0f6ed68-357e-4330-9dcf-8e67d36bc03a","html_url":"https://github.com/logto-io/dart","commit_stats":{"total_commits":29,"total_committers":3,"mean_commits":9.666666666666666,"dds":0.2068965517241379,"last_synced_commit":"c25831d1711e4df4186d7ee372f23667cd6e24b7"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/logto-io/dart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logto-io%2Fdart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logto-io%2Fdart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logto-io%2Fdart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logto-io%2Fdart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logto-io","download_url":"https://codeload.github.com/logto-io/dart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logto-io%2Fdart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270758079,"owners_count":24640181,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","authentication","authorization","dart","flutter","ios","jwt","logto","mfa","multi-tenant","oauth2","oidc","saml","sso"],"created_at":"2024-11-07T03:19:22.001Z","updated_at":"2025-08-16T19:09:58.978Z","avatar_url":"https://github.com/logto-io.png","language":"Dart","funding_links":["https://github.com/sponsors/logto-io"],"categories":["Dart"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://logto.io\" target=\"_blank\" align=\"center\" alt=\"Logto Logo\"\u003e\n      \u003cimg src=\"./logo.png\" width=\"100\"\u003e\n  \u003c/a\u003e\n  \u003cbr/\u003e\n  \u003cspan\u003e\u003ci\u003e\u003ca href=\"https://logto.io\" target=\"_blank\"\u003eLogto\u003c/a\u003e helps you quickly focus on everything after signing in.\u003c/i\u003e\u003c/span\u003e\n\u003c/p\u003e\n\n# Logto Flutter SDK\n\n[![Build Status](https://github.com/logto-io/kotlin/actions/workflows/main.yml/badge.svg)](https://github.com/logto-io/dart/actions/workflows/main.yml)\n\nThis project is the official Flutter SDK for [Logto](https://logto.io). It provides a simple way to integrate Logto into your Flutter project.\n\nIn the background, this SDK uses the [flutter_web_auth_2](https://pub.dev/packages/flutter_web_auth_2) package to handle the OAuth2 flow.\n\n## Installation\n\nAdd the following dependencies to your `pubspec.yaml` file:\n\n```yaml\ndependencies:\n  logto_dart_sdk: ^3.0.0\n```\n\nThen run `flutter pub get` to install the package.\n\nOr directly install the package by running:\n\n```bash\nflutter pub add logto_dart_sdk\n```\n\nCheck out the package on [pub.dev](https://pub.dev/packages/logto_dart_sdk).\n\n## Setup\n\n- iOS: No additional setup required.\n- [Android](https://github.com/ThexXTURBOXx/flutter_web_auth_2?tab=readme-ov-file#android).\n- [Web](https://github.com/ThexXTURBOXx/flutter_web_auth_2?tab=readme-ov-file#web)\n\nLearn more about the [flutter_web_auth_2 setup](https://github.com/ThexXTURBOXx/flutter_web_auth_2?tab=readme-ov-file#setup).\n\n## Usages\n\n### Init Logto SDK\n\n```dart\n  final logtoConfig = const LogtoConfig(\n    endpoint: \"\u003cyour-logto-endpoint\u003e\",\n    appId: \"\u003cyour-app-id\u003e\"\n  );\n\n  void _init() {\n    logtoClient = LogtoClient(\n      config: logtoConfig,\n      httpClient: http.Client(), // Optional http client\n    );\n    render();\n  }\n```\n\n### Sign in and sign out\n\n```dart\n  // Sign in\n  await logtoClient.signIn(redirectUri);\n\n  // Sign out\n  await logtoClient.signOut(redirectUri);\n```\n\n### Full SDK documentation\n\nCheck [Flutter SDK guide](https://docs.logto.io/quick-starts/flutter) for more details.\n\n## Supported platforms\n\niOS, Android, Web\n\n## Migration guide\n\n:::note\nFor SDK version before 3.0.0, this SDK uses the [flutter_web_auth](https://pub.dev/packages/flutter_web_auth) package.\n:::\n\n1. Upgrade to the latest version\n\n```yaml\ndependencies:\n  logto_dart_sdk: ^3.0.0\n```\n\n2. Update the manifest files (Android platform only)\n\nReplace the flutter_web_auth callback activity with the new `flutter_web_auth_2` in the AndroidManifest.xml file.\n\n- FlutterWebAuth -\u003e FlutterWebAuth2\n- flutter_web_auth -\u003e flutter_web_auth_2\n\n3. `redirectUri` parameter is now required for the `signOut` method.\n\n```dart\nawait logtoClient.signOut(redirectUri);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogto-io%2Fdart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogto-io%2Fdart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogto-io%2Fdart/lists"}