{"id":29182919,"url":"https://github.com/magiclabs/example-mws-google","last_synced_at":"2025-07-31T04:36:02.621Z","repository":{"id":168715947,"uuid":"612442496","full_name":"magiclabs/example-mws-google","owner":"magiclabs","description":"An example app showcasing the simplicity of the Magic Wallet Services setup with Google as the identity provider.","archived":true,"fork":false,"pushed_at":"2023-08-30T04:53:42.000Z","size":1227,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-13T06:11:49.031Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/magiclabs.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,"zenodo":null}},"created_at":"2023-03-11T00:49:42.000Z","updated_at":"2025-02-07T20:08:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"4bd2180c-5b16-4f3b-8fe6-64ebe84d9c9d","html_url":"https://github.com/magiclabs/example-mws-google","commit_stats":null,"previous_names":["magiclabs/example-mws-google"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/magiclabs/example-mws-google","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Fexample-mws-google","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Fexample-mws-google/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Fexample-mws-google/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Fexample-mws-google/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magiclabs","download_url":"https://codeload.github.com/magiclabs/example-mws-google/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Fexample-mws-google/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267988458,"owners_count":24176996,"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-07-31T02:00:08.723Z","response_time":66,"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":[],"created_at":"2025-07-01T20:33:34.606Z","updated_at":"2025-07-31T04:36:02.612Z","avatar_url":"https://github.com/magiclabs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magic Wallet Services + Google OneTap Login Demo\n\nAn example app showcasing the simplicity of the Magic Wallet Services setup with Google as the identity provider.\n\n[Visit the deployed app here](https://mws-google.herokuapp.com/) ↗\n\n## Prerequisites\n\n### Google One Tap\n\n- Sign into [Google Cloud Console](https://console.cloud.google.com/)\n- [Create a Project](https://console.cloud.google.com/projectcreate). Fill out the fields and click `CREATE`\n- Configure OAuth\n  1. **OAuth consent screen**\n     - Complete the **App information** and add to **App logo** if needed.\n     - In **App domain** include links to your `home page`, `privacy policy`, and `terms of service`. This will be needed for the Google verification process. If you're only testing it can be omitted.\n     - Select the user type (`internal` or `external`) and click `CREATE`\n     - Fill in the **App information** fields.\n     - Add the authorized domains to the **Authorized domains** section, and include `magic.link`.\n     - Click `SAVE AND CONTINUE`\n  2. **Scopes**\n     - Include the necessary scopes or just skip this section if you're simply testing MWS as it is not required.\n     - Click `SAVE AND CONTINUE`\n  3. **Summary**\n     - Review the summary\n     - Click `BACK TO DASHBOARD`\n- Create Credentials\n  - Click the `Credentials` link in the left side-panel in the Google cloud console with your project selected\n  - Click `+ CREATE CREDENTIALS` and `OAuth client ID`\n  - Select an `Application type` and give it a name\n  - Enter your domain into the `Authorized Javascript Origins`\n  - Click `Create`\n  - You'll be presented with `Your client ID` and `Your Client Secret`. Please take note of these values. In this demo we will only use the `Client ID` and it will be required to share it with Magic during the Magic MWS Setup step\n\n### Magic\n\n- Create a [Magic account](https://magic.link/).\n- Create a Magic Auth application and retain the `Publishable API Key`.\n\n[Magic Web API docs](https://magic.link/docs/auth/api-reference/client-side-sdks/web)\n\n### Magic MWS Setup\n\n- Contact Magic and provide the Google `client ID` and Magic `Publishable API Key`.\n- Magic will return a `Provider ID`, please retain this.\n\n## Quickstart Instructions\n\n🚨 **Before you begin:** please read the [prerequisites](#prerequisites)\n\nClone this repo to your local machine:\n\n```bash\n$ git clone https://github.com/\n$ cd example-mws-google\n$ mv .env.example .env\n```\n\nTo install and set up the library, run:\n\n```bash\n$ npm install\n# or\n$ yarn install\n```\n\n### .env File\n\nInsert the following values obtained in the [prerequisites](#prerequisites) section, into the `.env` file\n\n```\nREACT_APP_MAGIC_PUBLISHABLE_KEY=\nREACT_APP_GOOGLE_CLIENT_ID=\nREACT_APP_MAGIC_PROVIDER_ID=\n```\n\n### Serving the App Locally\n\n```bash\n$ npm start\n# or\n$ yarn start\n```\n\n### Finally\n\nWhen the browser is loaded with the app you can test functionality by clicking **`Login with Google`** to start the Google login process. You should see a login modal from Google appear onscreen. Click the continue button to sign in. You will be directed to the `profile` page where the user's name and email are populated from the Google ID token and the wallet's address is populated from **Magic**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclabs%2Fexample-mws-google","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagiclabs%2Fexample-mws-google","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclabs%2Fexample-mws-google/lists"}