{"id":18966114,"url":"https://github.com/aergoio/user-auth","last_synced_at":"2025-07-10T08:40:05.139Z","repository":{"id":85583112,"uuid":"473837509","full_name":"aergoio/user-auth","owner":"aergoio","description":"Account authentication for DAOs","archived":false,"fork":false,"pushed_at":"2022-03-28T01:20:59.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-01T06:12:37.672Z","etag":null,"topics":["authentication","blockchain"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/aergoio.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":"2022-03-25T02:08:23.000Z","updated_at":"2022-04-12T02:22:42.000Z","dependencies_parsed_at":"2023-03-14T03:30:18.397Z","dependency_job_id":null,"html_url":"https://github.com/aergoio/user-auth","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/aergoio%2Fuser-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aergoio%2Fuser-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aergoio%2Fuser-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aergoio%2Fuser-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aergoio","download_url":"https://codeload.github.com/aergoio/user-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239964516,"owners_count":19725952,"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":["authentication","blockchain"],"created_at":"2024-11-08T14:35:43.908Z","updated_at":"2025-02-21T05:54:44.059Z","avatar_url":"https://github.com/aergoio.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User Auth\n\nThis contract allows web apps to authenticate the user/account\n\nIt works with DAO accounts too\n\n\n## How to Use\n\nThe dApp generates a unique id and inform that id to the user\n\nThe user sends a transaction to the `user-auth` contract informing the unique id\n\n```\ncall(user_auth, \"approve\", unique_id)\n```\n\nThe contract will emit an event on the blockchain containing the unique id and\nthe user account address\n\n```\n\"approve\", unique_id, account_address\n```\n\nThe dApp must listen to events from the `user-auth` contract. Once it receives\nthe `approve` event it can check if it matches some unique_id it is waiting for\nand also check if the account address matches the user's account address\n\n\n### Contract Addresses\n\n| Chain   | Address |\n| ------- | ------- |\n| Mainnet | [AmhBGafBM3UrR3Mxr7tY2ibRhrCAX7zJVafeMcLBrdKbiBY2Mb2o](https://mainnet.aergoscan.io/account/AmhBGafBM3UrR3Mxr7tY2ibRhrCAX7zJVafeMcLBrdKbiBY2Mb2o/?tab=interactive) |\n| Testnet | [AmgzdhMNCfCWpWMqout9aammdTzP7Q8X7Nx3pn9FCrAmzPYJDhJ7](https://testnet.aergoscan.io/account/AmgzdhMNCfCWpWMqout9aammdTzP7Q8X7Nx3pn9FCrAmzPYJDhJ7/?tab=interactive) |\n| Alphanet | [AmgvjL9oTdPAgEJSwknqTXy1jMRsSXEn8DBWXqezLUx1AmpS1j7Q](https://alpha.aergoscan.io/account/AmgvjL9oTdPAgEJSwknqTXy1jMRsSXEn8DBWXqezLUx1AmpS1j7Q/?tab=interactive) |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faergoio%2Fuser-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faergoio%2Fuser-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faergoio%2Fuser-auth/lists"}