{"id":15292723,"url":"https://github.com/game-ci/unity-verify-code","last_synced_at":"2025-04-13T10:26:16.745Z","repository":{"id":38309039,"uuid":"408538527","full_name":"game-ci/unity-verify-code","owner":"game-ci","description":"An email parser to get 6 digit verification code","archived":false,"fork":false,"pushed_at":"2025-01-07T18:53:20.000Z","size":56,"stargazers_count":15,"open_issues_count":0,"forks_count":11,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-10T15:47:24.830Z","etag":null,"topics":["tfa","unity","verfication","verify"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/unity-verify-code","language":"JavaScript","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/game-ci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"game-ci","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-09-20T17:29:38.000Z","updated_at":"2025-04-09T10:19:25.000Z","dependencies_parsed_at":"2023-01-31T19:45:41.663Z","dependency_job_id":"48fa77b1-4459-4b27-91b0-89950fc92b3e","html_url":"https://github.com/game-ci/unity-verify-code","commit_stats":{"total_commits":68,"total_committers":3,"mean_commits":"22.666666666666668","dds":0.02941176470588236,"last_synced_commit":"6a117e943e36a5b3088d04a809dc1c53727d5d60"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/game-ci%2Funity-verify-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/game-ci%2Funity-verify-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/game-ci%2Funity-verify-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/game-ci%2Funity-verify-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/game-ci","download_url":"https://codeload.github.com/game-ci/unity-verify-code/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248697156,"owners_count":21147272,"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":["tfa","unity","verfication","verify"],"created_at":"2024-09-30T16:26:13.810Z","updated_at":"2025-04-13T10:26:16.721Z","avatar_url":"https://github.com/game-ci.png","language":"JavaScript","funding_links":["https://github.com/sponsors/game-ci"],"categories":[],"sub_categories":[],"readme":"[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n[![Release](https://img.shields.io/github/tag/jcs090218/unity-verify-code.svg?label=release\u0026logo=github)](https://github.com/jcs090218/unity-verify-code/releases/latest)\n[![npm](https://img.shields.io/npm/v/unity-verify-code?logo=npm\u0026color=green)](https://www.npmjs.com/package/unity-verify-code)\n[![npm-dt](https://img.shields.io/npm/dt/unity-verify-code.svg)](https://npmcharts.com/compare/unity-verify-code?minimal=true)\n[![npm-dm](https://img.shields.io/npm/dm/unity-verify-code.svg)](https://npmcharts.com/compare/unity-verify-code?minimal=true)\n\n# unity-verify-code\n\n[![dependencies Status](https://status.david-dm.org/gh/jcs090218/unity-verify-code.svg)](https://david-dm.org/jcs090218/unity-verify-code)\n\nAn email parser to get 6 digit verification code.\n\nThis tool is design to use with [unity-license-activate](https://github.com/jcs090218/unity-license-activate)\nso you can feed verification code to get pass Unity's TFA.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./etc/tfa.png\"/\u003e\n\u003c/p\u003e\n\n## 💾 Prerequisite\n\nThis application uses IMAP to parse your verification email from Unity, so make\nsure your email's IMAP service is enabled!\n\n* `Gmail`, see [How Can i receive incoming mails(gmail) to my application server using imap (nodejs)](https://stackoverflow.com/questions/62404008/how-can-i-receive-incoming-mailsgmail-to-my-application-server-using-imap-nod)\n\n*P.S. All email services should have the similar steps!*\n\n### 📬 Supported mail services\n\n| Name    | Done | Value                   |\n|---------|------|-------------------------|\n| Gmail   | ✔    | `imap.gmail.com`        |\n| Hotmail | ✔    | `imap-mail.outlook.com` |\n| Outlook | ✔    | `imap-mail.outlook.com` |\n| Yahoo   | ✔    | `imap.mail.yahoo.com`   |\n| Foxmail | ✔    | `imap.qq.com`           |\n| QQ      | ✔    | `imap.qq.com`           |\n\n## 🔨 How to use?\n\nYou can use these tools with any CI/CD system as long as you have the [Node](https://nodejs.org/en/)\nenvironment set up! Here is an example of GitHub Actions.\n\n```yml\njobs:\n  acquire_ulf:\n    name: Acquire .ulf file 🔑\n    runs-on: ubuntu-latest\n    strategy:\n      matrix:\n        node-version: [14.x]\n    steps:\n      - name: Set up Node.js ${{ matrix.node-version }}\n        uses: actions/setup-node@v1\n        with:\n          node-version: ${{ matrix.node-version }}\n\n      - name: Install node package, `unity-license-activate`\n        run: npm install --global unity-license-activate\n\n      # You would only have to install it!\n      - name: Install node package, `unity-verify-code`\n        run: npm install --global unity-verify-code\n\n      - name: Activate the license\n        run: unity-license-activate \"${{ secrets.UNITY_EMAIL }}\" \"${{ secrets.UNITY_PASSWORD }}\" \"${{ needs.request_alf.outputs.alf }}\"\n```\n\nSee the full example [here](https://github.com/jcs090218/JCSUnity/blob/master/.github/workflows/license.yml).\n\n## 📇 Command Line Arguments\n\n```console\nusage : unity-verify-code [--port] [--tls]\n                          EMAIL [EMAIL ...] PASSWORD [PASSWORD ...] HOST [HOST ...]\n                          SAVE_PATH [SAVE_PATH ...]\n\nUnity License Activate : An email parser to get 6 digit verification code.\n\npositional arguments:\n  EMAIL          Username or Email you use to register for Unity account\n  PASSWORD       Password to login Unity account\n  SAVE_PATH      File path to save the 6 digit code.\n\noptional arguments:\n  --port         Port number of the IMAP server. Default: 143\n  --tls          boolean - Perform implicit TLS connection? Default: false\n```\n\n## ⚜️ Licence\n\nThis repository is [MIT](./LICENSE) licensed.\n\nThis includes all contributions from the community.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgame-ci%2Funity-verify-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgame-ci%2Funity-verify-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgame-ci%2Funity-verify-code/lists"}