{"id":20876437,"url":"https://github.com/iniakunhuda/flutter_auth_riverpod_strapi","last_synced_at":"2025-04-11T00:14:20.010Z","repository":{"id":149902178,"uuid":"622438389","full_name":"iniakunhuda/flutter_auth_riverpod_strapi","owner":"iniakunhuda","description":"Simple Authentication Login with Riverpod Flutter + Strapi API","archived":false,"fork":false,"pushed_at":"2023-04-02T05:53:04.000Z","size":1054,"stargazers_count":12,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T00:14:12.116Z","etag":null,"topics":["dart","flutter","flutter-riverpod","riverpod"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iniakunhuda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-04-02T05:25:22.000Z","updated_at":"2025-02-09T01:12:15.000Z","dependencies_parsed_at":"2023-04-26T19:01:06.180Z","dependency_job_id":null,"html_url":"https://github.com/iniakunhuda/flutter_auth_riverpod_strapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iniakunhuda%2Fflutter_auth_riverpod_strapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iniakunhuda%2Fflutter_auth_riverpod_strapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iniakunhuda%2Fflutter_auth_riverpod_strapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iniakunhuda%2Fflutter_auth_riverpod_strapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iniakunhuda","download_url":"https://codeload.github.com/iniakunhuda/flutter_auth_riverpod_strapi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248317730,"owners_count":21083530,"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","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":["dart","flutter","flutter-riverpod","riverpod"],"created_at":"2024-11-18T06:51:31.158Z","updated_at":"2025-04-11T00:14:19.989Z","avatar_url":"https://github.com/iniakunhuda.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eFlutter Simple Auth with Riverpod \u0026 Strapi\u003c/h1\u003e\n\n\u003cbr\u003e\n\n\u003ca href=\"https://flutter.io/\"\u003eFlutter\u003c/a\u003e Flutter allows you to build beautiful native apps on iOS and Android Platforms from a single codebase. The main goal of this repository is to learn how to implement simple login authentication Riverpod (flutter state management) \u0026 Strapi (Rest API) \n\n\u003cdiv\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/iniakunhuda/flutter_auth_riverpod_strapi/main/preview/preview_1.png\" alt=\"feed example\" width=\"200\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/iniakunhuda/flutter_auth_riverpod_strapi/main/preview/preview_2.png\" alt=\"feed example\" width=\"200\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/iniakunhuda/flutter_auth_riverpod_strapi/main/preview/preview_3.png\" alt=\"feed example\" width=\"200\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/iniakunhuda/flutter_auth_riverpod_strapi/main/preview/preview_4.png\" alt=\"feed example\" width=\"200\"\u003e\n\u003c/div\u003e\n\u003c/p\u003e\n\n### Package\n\n- RiverPod Hooks (https://riverpod.dev/)\n- flutter_hooks (https://pub.dev/packages/flutter_hooks)\n- Strapi API (https://strapi.io/)\n- dio (https://pub.dev/packages/dio)\n- dartz (https://pub.dev/packages/dartz)\n- shared_preferences (https://pub.dev/packages/shared_preferences)\n\n### Strapi Setup\n\nRunning in local / deploy to production\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/iniakunhuda/flutter_auth_riverpod_strapi/main/preview/strapi.png\" alt=\"feed example\" width=\"100%\"\u003e\n\n\u003cbr/\u003e\u003cbr/\u003e\n\n### Rest API\n\n\n#### Happy Scenario\n\nBody\n```json\n{\n    \"identifier\": \"miftahulinc@gmail.com\",\n    \"password\": \"huda12345\"\n}\n```\n\nResponse\n```json\n{\n    \"jwt\": \"generated_jwt_token\",\n    \"user\": {\n        \"id\": 1,\n        \"username\": \"miftahulinc\",\n        \"email\": \"miftahulinc@gmail.com\",\n        \"provider\": \"local\",\n        \"confirmed\": true,\n        \"blocked\": false,\n        \"createdAt\": \"2023-04-02T02:46:58.297Z\",\n        \"updatedAt\": \"2023-04-02T02:47:39.939Z\"\n    }\n}\n```\n\n#### Bad Scenario\n\nBody\n```json\n{\n    \"identifier\": \"miftahulinc@gmail.com\",\n    \"password\": \"huda123453\"\n}\n```\n\nResponse\n```json\n{\n    \"data\": null,\n    \"error\": {\n        \"status\": 400,\n        \"name\": \"ValidationError\",\n        \"message\": \"Invalid identifier or password\",\n        \"details\": {}\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finiakunhuda%2Fflutter_auth_riverpod_strapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finiakunhuda%2Fflutter_auth_riverpod_strapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finiakunhuda%2Fflutter_auth_riverpod_strapi/lists"}