{"id":24345223,"url":"https://github.com/flappwrite/auth_kit","last_synced_at":"2025-10-14T00:42:51.297Z","repository":{"id":40004303,"uuid":"364808867","full_name":"flappwrite/auth_kit","owner":"flappwrite","description":"Making Appwrite Authentication Easy","archived":false,"fork":false,"pushed_at":"2024-08-02T11:03:57.000Z","size":283,"stargazers_count":34,"open_issues_count":4,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-11T18:34:10.782Z","etag":null,"topics":["appwrite","flutter"],"latest_commit_sha":null,"homepage":"https://youtu.be/bqh8qjNCHno","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/flappwrite.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-06T06:35:06.000Z","updated_at":"2025-10-09T18:20:17.000Z","dependencies_parsed_at":"2023-02-09T22:31:06.658Z","dependency_job_id":"7117355c-13fb-48fa-a532-c079da6e15c2","html_url":"https://github.com/flappwrite/auth_kit","commit_stats":{"total_commits":62,"total_committers":5,"mean_commits":12.4,"dds":"0.24193548387096775","last_synced_commit":"e3e48c22a546c1db57d7ea1b9a8e19f5da5bc127"},"previous_names":["lohanidamodar/flappwrite_account_kit","flappwrite/auth_kit"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/flappwrite/auth_kit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flappwrite%2Fauth_kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flappwrite%2Fauth_kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flappwrite%2Fauth_kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flappwrite%2Fauth_kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flappwrite","download_url":"https://codeload.github.com/flappwrite/auth_kit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flappwrite%2Fauth_kit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017362,"owners_count":26086052,"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-10-13T02:00:06.723Z","response_time":61,"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":["appwrite","flutter"],"created_at":"2025-01-18T10:01:19.669Z","updated_at":"2025-10-14T00:42:51.291Z","avatar_url":"https://github.com/flappwrite.png","language":"Dart","readme":"# Appwrite Auth Kit\n\nA Flutter wrapper for Appwrite's Accounts service, makes it easy to use manage authentication and account features.\n\n## Getting Started\nThis is really very easy to use\n1. Add dependency\n\n```yaml\ndependencies:\n    appwrite_auth_kit: \u003cversion\u003e\n```\n1. Wrap your MaterialApp `AppwriteAuthKit` passing a properly initialized Appwrite Client. Example below:\n\n```dart\nclass MyApp extends StatefulWidget {\n  @override\n  _MyAppState createState() =\u003e _MyAppState();\n}\n\nclass _MyAppState extends State\u003cMyApp\u003e {\n  late Client client;\n  @override\n  void initState() {\n    super.initState();\n    //initialize your client\n    client = Client();\n    client\n        .setEndpoint('https://localhost/v1')\n        .setProject('60793ca4ce59e')\n        .setSelfSigned();\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return AppwriteAuthKit(\n      client: client,\n      child: MaterialApp(\n        title: 'Flutter Demo',\n        theme: ThemeData(\n          primarySwatch: Colors.blue,\n        ),\n        home: MainScreen(),\n      ),\n    );\n  }\n}\n```\n\n2. Access `authNotifier` from `context`. `authNotifier` is an instance of `AuthNotifier` that provides all the functions of Appwrite's Account service and some easy way to handle authentication.\n3. Get `context.authNotifier.status` gets the authentication status which can be one of the `AuthStatus.uninitialized`, `AuthStatus.unauthenticated`, `AuthStatus.authenticating` and `AuthStatus.authenticated`. You can check the status and display the appropriate UI, for example\n\n```dart\nclass MainScreen extends StatelessWidget {\n  @override\n  Widget build(BuildContext context) {\n    final authNotifier = context.authNotifier;\n\n    Widget widget;\n    switch (authNotifier.status) {\n      case AuthStatus.authenticated:\n        widget = AdminPage();\n        break;\n      case AuthStatus.unauthenticated:\n      case AuthStatus.authenticating:\n        widget = LoginPage();\n        break;\n      case AuthStatus.uninitialized:\n      default:\n        widget = LoadingPage();\n        break;\n    }\n    return widget;\n  }\n}\n```\n4. You must use the functions from the `context.authNotifier` instead default Account service from Appwrite SDK to create user, create session (login), delete session (logout), so that the `context.authNotifier?.status` is properly updated and your UI updates accordingly.","funding_links":[],"categories":["Tools"],"sub_categories":["Community-Built SDKs"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflappwrite%2Fauth_kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflappwrite%2Fauth_kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflappwrite%2Fauth_kit/lists"}