{"id":25506330,"url":"https://github.com/scrachstack/auth-system","last_synced_at":"2026-04-09T12:02:40.429Z","repository":{"id":278289242,"uuid":"935125473","full_name":"ScrachStack/auth-system","owner":"ScrachStack","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-19T01:22:16.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-19T01:27:27.491Z","etag":null,"topics":["auth","ejs","express","javascript","website"],"latest_commit_sha":null,"homepage":"","language":null,"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/ScrachStack.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2025-02-19T00:12:53.000Z","updated_at":"2025-02-19T01:22:19.000Z","dependencies_parsed_at":"2025-02-19T01:27:32.263Z","dependency_job_id":"742e1801-bec8-4e50-96b6-f7b80d1e36db","html_url":"https://github.com/ScrachStack/auth-system","commit_stats":null,"previous_names":["scrachstack/auth-system"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScrachStack%2Fauth-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScrachStack%2Fauth-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScrachStack%2Fauth-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScrachStack%2Fauth-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScrachStack","download_url":"https://codeload.github.com/ScrachStack/auth-system/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239610031,"owners_count":19668079,"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":["auth","ejs","express","javascript","website"],"created_at":"2025-02-19T06:30:20.607Z","updated_at":"2025-12-30T20:17:57.240Z","avatar_url":"https://github.com/ScrachStack.png","language":null,"funding_links":["https://ko-fi.com/T6T01APGOO"],"categories":[],"sub_categories":[],"readme":"\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n\t\u003ch1 align=\"center\"\u003e\n\t\tAuth System - Express.js Application\n\t\u003c/h1\u003e\n\u003cbr/\u003e\n\n[![Discord](https://img.shields.io/badge/Discord-Support-5865F2?style=flat\u0026logo=discord\u0026logoColor=white)](https://discord.gg/tgrU8wgeHx) \n\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/T6T01APGOO)\n\n![xng4ud](https://github.com/user-attachments/assets/d246c09f-2c1f-4707-82f7-664631ab1136)\n\n![b9e9a1](https://github.com/user-attachments/assets/b40920d5-62ee-47a1-9bb7-e220632088e4)\n\n## Examples\n\n```\nLua\nPerformHttpRequest(\"http://127.0.0.1/validate-ip\", function(result, data)\n    if (data:gsub(\"%\\\"\", \"\") == \"SUCCESS_200_OK \") then \n        print(\"^2License Activated!\")\n    else\n        print(\"^1License Deactivated ^0\")\n    end\nend)\nPHP\n\u003c?php\n$url = \"http://127.0.0.1/validate-ip\"; \n$options = [\n    CURLOPT_URL =\u003e $url,\n    CURLOPT_RETURNTRANSFER =\u003e true,\n    CURLOPT_POST =\u003e true,\n    CURLOPT_HTTPHEADER =\u003e [\n        'Content-Type: application/x-www-form-urlencoded'\n    ]];\n$ch = curl_init();\ncurl_setopt_array($ch, $options);\n$response = curl_exec($ch);\ncurl_close($ch);\nif (trim($response) === 'SUCCESS_200_OK') {\n    echo \"License Activated!\";\n} else {\n    echo \"License Deactivated!\";\n}\n?\u003e\nJavascript\nconst url = \"http://127.0.0.1/validate-ip\"; // Your validation endpoint\nfetch(url, {\n    method: 'POST',\n    headers: {\n        'Content-Type': 'application/json' }})\n.then(response =\u003e response.text())  // Expecting text response (not JSON)\n.then(data =\u003e {\n    if (data.trim() === 'SUCCESS_200_OK') {\n        console.log(\"License Activated!\");\n    } else {\n        console.log(\"License Deactivated!\"); }})\n.catch(error =\u003e console.error(\"Error:\", error));\nC#\nusing System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\nclass Program\n{\n    static async Task Main(string[] args)\n    {\n        string url = \"http://127.0.0.1/validate-ip\"; // Your validation endpoint\n\n        using (HttpClient client = new HttpClient())\n        {\n            HttpResponseMessage response = await client.PostAsync(url, null);\n\n            string responseString = await response.Content.ReadAsStringAsync();\n\n            if (responseString.Trim() == \"SUCCESS_200_OK\")\n            {\n                Console.WriteLine(\"License Activated!\");\n            }\n            else\n            {\n                Console.WriteLine(\"License Deactivated!\");}}}}\n```\n\n## Setup\n\n- Insert ``INSERT.SQL`` into your mysql database.\n\n- Edit ``secret_API`` inside of ``config.json`` then go to ``http://localhost/add-ip?KEY=YOURKEY``\n\n## Reqirements\n\n- Node.js **v16** or **Higher** is required.\n\n- MySQL\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrachstack%2Fauth-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscrachstack%2Fauth-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrachstack%2Fauth-system/lists"}