{"id":20581124,"url":"https://github.com/peterakande/autivate_dart","last_synced_at":"2026-06-05T11:31:42.917Z","repository":{"id":206655035,"uuid":"717400613","full_name":"PeterAkande/autivate_dart","owner":"PeterAkande","description":"The Dart SDK for the authivate Service https://authivate.com","archived":false,"fork":false,"pushed_at":"2024-01-01T01:47:26.000Z","size":24,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T12:16:09.767Z","etag":null,"topics":["dart","flutter"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/authivate","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/PeterAkande.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":"2023-11-11T11:32:44.000Z","updated_at":"2024-11-23T01:54:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2450c2e-3b92-4a30-b3f5-569e5123a3f1","html_url":"https://github.com/PeterAkande/autivate_dart","commit_stats":null,"previous_names":["peterakande/autivate_dart"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PeterAkande/autivate_dart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterAkande%2Fautivate_dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterAkande%2Fautivate_dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterAkande%2Fautivate_dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterAkande%2Fautivate_dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeterAkande","download_url":"https://codeload.github.com/PeterAkande/autivate_dart/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterAkande%2Fautivate_dart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33939225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"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":["dart","flutter"],"created_at":"2024-11-16T06:27:14.261Z","updated_at":"2026-06-05T11:31:42.901Z","avatar_url":"https://github.com/PeterAkande.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authivate\n\n[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]\n[![Powered by Mason](https://img.shields.io/endpoint?url=https%3A%2F%2Ftinyurl.com%2Fmason-badge)](https://github.com/felangel/mason)\n[![License: MIT][license_badge]][license_link]\n\nThe Dart SDK for the [Authivate](https://authivate.com) service\n\nAuthivate is a User Authentication and Management Platform\n## Installation 💻\n\n**❗ In order to start using Authivate you must have the [Dart SDK][dart_install_link] installed on your machine.**\n\nInstall via `dart pub add`:\n\n```sh\ndart pub add authivate\n```\n\n---\n## Example Usage\n```dart\nimport 'dart:developer';\n\nimport 'package:authivate/authivate.dart';\n\nvoid main() async {\n  // initialize config\n  final config = AuthivateConfig(\n    apiKey: 'your-API-key-gotten-from-the-dashboard',\n    projectId: 'authivate-test',\n  );\n\n  /// Initialize The Authivate Instance\n  final autivateInstance = Authivate(config: config);\n\n  /// Sign up a user\n  await signUpUser();\n\n  /// Sign In  a user\n  await signInUser();\n\n  /// Send a Confirm password email if the original one has expired\n  await sendConfirmAccountEmail();\n\n  /// Send a Forgot password email\n  await sendForgotPasswordEmail();\n}\n\nFuture\u003cvoid\u003e signUpUser() async {\n  /// Sign Up a user\n  const emailAddress = 'akandepeter@gmail.com';\n  const firstName = 'Peter';\n  const lastName = 'Akande';\n  const password = 'Password'; // Optional, Depending on Project Settings\n\n  final signUpResponse = await Authivate.instance.signUpUser(\n    emailAddress: emailAddress,\n    lastName: lastName,\n    firstName: firstName,\n    password: password,\n  );\n\n  if (signUpResponse.isLeft()) {\n    // An Error occurreed\n    log(signUpResponse.failureMessage);\n    return;\n  }\n\n  // The user was successfully signed up\n  log(signUpResponse.successResponse.toString());\n\n  ///Response\n  ///{message: Email Sent!,\n  /// user_record: {\n  ///   email_address: akandepeter@gmail.com,\n  ///   is_verified: false,\n  ///   date_created: 2023-11-11T11:12:48.293571Z,\n  ///   first_name: Peter,\n  ///   last_name: Akande,\n  ///   user_unique_id: dp.ldcaopaggcapepaom\n  ///   }\n  /// }\n}\n\nFuture\u003cvoid\u003e signInUser() async {\n  /// Sign In a user\n  const emailAddress = 'akandepeter@gmail.com';\n  const password = 'Password'; // Optional, Depending on Project Settings\n\n  final signInResponse = await Authivate.instance.signInUser(\n    emailAddress: emailAddress,\n    password: password,\n  );\n\n  if (signInResponse.isLeft()) {\n    // An Error occurreed\n    log(signInResponse.failureMessage);\n    return;\n  }\n\n  // The user was successfully signed in\n  log(signInResponse.successResponse.toString());\n\n  ///Response\n  ///{\n  /// user_record: {\n  ///   email_address: akandepeter@gmail.com,\n  ///   is_verified: false,\n  ///   date_created: 2023-11-11T11:12:48.293571Z,\n  ///   first_name: Peter,\n  ///   last_name: Akande,\n  ///   user_unique_id: dp.ldcaopaggcapepaom\n  ///   }\n  /// }\n}\n\nFuture\u003cvoid\u003e sendConfirmAccountEmail() async {\n  /// Send a Confirm password email if the original one has expired\n  const emailAddress = 'akandepeter@gmail.com';\n\n  final confirmAccountEmailResponse =\n      await Authivate.instance.requestOTPForUser(\n    emailAddress: emailAddress,\n  );\n\n  if (confirmAccountEmailResponse.isLeft()) {\n    // An Error occurreed\n    log(confirmAccountEmailResponse.failureMessage);\n    return;\n  }\n\n  // Send a Confirm password email if the original one has expired\n  log(confirmAccountEmailResponse.successResponse.toString());\n\n  ///Response\n  ///{{message: Email Sent Successfully}\n}\n\nFuture\u003cvoid\u003e sendForgotPasswordEmail() async {\n  /// Send a forgot password email\n  const emailAddress = 'akandepeter@gmail.com';\n\n  final forgotPasswordResponse =\n      await Authivate.instance.requestForgotPasswordForUser(\n    emailAddress: emailAddress,\n  );\n\n  if (forgotPasswordResponse.isLeft()) {\n    // An Error occurreed\n    log(forgotPasswordResponse.failureMessage);\n    return;\n  }\n\n  // Forgot password email sebt successfully\n  log(forgotPasswordResponse.successResponse.toString());\n\n  ///Response\n  /// {message: Forgot Password Email Sent!}\n}\n\n\n```\n\n\n\n\n\n[dart_install_link]: https://dart.dev/get-dart\n[github_actions_link]: https://docs.github.com/en/actions/learn-github-actions\n[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg\n[license_link]: https://opensource.org/licenses/MIT\n[logo_black]: https://raw.githubusercontent.com/VGVentures/very_good_brand/main/styles/README/vgv_logo_black.png#gh-light-mode-only\n[logo_white]: https://raw.githubusercontent.com/VGVentures/very_good_brand/main/styles/README/vgv_logo_white.png#gh-dark-mode-only\n[mason_link]: https://github.com/felangel/mason\n[very_good_analysis_badge]: https://img.shields.io/badge/style-very_good_analysis-B22C89.svg\n[very_good_analysis_link]: https://pub.dev/packages/very_good_analysis\n[very_good_coverage_link]: https://github.com/marketplace/actions/very-good-coverage\n[very_good_ventures_link]: https://verygood.ventures\n[very_good_ventures_link_light]: https://verygood.ventures#gh-light-mode-only\n[very_good_ventures_link_dark]: https://verygood.ventures#gh-dark-mode-only\n[very_good_workflows_link]: https://github.com/VeryGoodOpenSource/very_good_workflows\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterakande%2Fautivate_dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterakande%2Fautivate_dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterakande%2Fautivate_dart/lists"}