{"id":15046794,"url":"https://github.com/anthonychwong/auth0-flutter-web","last_synced_at":"2025-09-02T04:08:25.711Z","repository":{"id":38973812,"uuid":"338486851","full_name":"anthonychwong/auth0-flutter-web","owner":"anthonychwong","description":"Wrapper of Auth0 SPA SDK for Flutter Web","archived":false,"fork":false,"pushed_at":"2022-05-11T11:28:49.000Z","size":45,"stargazers_count":8,"open_issues_count":5,"forks_count":11,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T13:11:10.279Z","etag":null,"topics":["auth0","auth0-spa-js","dart"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anthonychwong.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}},"created_at":"2021-02-13T03:16:44.000Z","updated_at":"2022-10-31T02:56:23.000Z","dependencies_parsed_at":"2022-09-06T00:53:01.299Z","dependency_job_id":null,"html_url":"https://github.com/anthonychwong/auth0-flutter-web","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anthonychwong/auth0-flutter-web","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonychwong%2Fauth0-flutter-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonychwong%2Fauth0-flutter-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonychwong%2Fauth0-flutter-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonychwong%2Fauth0-flutter-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthonychwong","download_url":"https://codeload.github.com/anthonychwong/auth0-flutter-web/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonychwong%2Fauth0-flutter-web/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265327198,"owners_count":23747702,"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":["auth0","auth0-spa-js","dart"],"created_at":"2024-09-24T20:53:35.442Z","updated_at":"2025-07-14T17:40:11.976Z","avatar_url":"https://github.com/anthonychwong.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auth0 Flutter Web\n\nA wrapper for Auth0 SPA SDK to use Auth0 in Flutter Web.\n\n\u003e ⚠ The latest is [`0.0.1-alpha.6`](https://pub.dev/packages/auth0_flutter_web/versions/0.0.1-alpha.6) but not serve by `pub.dev` by default.\n\n[![](https://img.shields.io/pub/v/auth0_flutter_web)](https://pub.dev/packages/auth0_flutter_web)\n\n## How to use\n\n### 1. Add dependency\n\n  ```yaml\n  dependencies:\n    auth0_flutter_web:\n  ```\n\n### 2. Load Auth0 SPA SDK in `index.html`\n   \n   Make Auth0 SPA SDK available for dart by adding it to `index.html` in `web` folder (besides `ios` and `android`)\n\n  ```HTML\n  \u003chead\u003e\n    \u003c!-- other elements in head --\u003e\n    \u003cscript src=\"https://cdn.auth0.com/js/auth0-spa-js/1.13/auth0-spa-js.production.js\"\u003e\u003c/script\u003e\n    \u003c!-- other elements in head --\u003e\n  \u003c/head\u003e\n  ```\n\n### 3. Use `Auth0` in dart code\n\n  ```dart\n  import 'package:auth0_flutter_web/auth0_flutter_web.dart';\n\n  Auth0 auth0 = await createAuth0Client(\n    Auth0CreateOptions(\n      domain: '-- domain of the universal login page --',\n      client_id: '-- id of your app --',\n    )\n  );\n\n  String token = await auth0.getTokenWithPopup();\n  ```\n\n## Example\n\nComplete source code of working example can be found in `example` folder under repository `root`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonychwong%2Fauth0-flutter-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthonychwong%2Fauth0-flutter-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonychwong%2Fauth0-flutter-web/lists"}