{"id":29132121,"url":"https://github.com/yuvrajnode/jwt-auth-app","last_synced_at":"2026-04-28T10:36:17.137Z","repository":{"id":301937879,"uuid":"1010718708","full_name":"yuvrajnode/jwt-auth-app","owner":"yuvrajnode","description":"A simple full-stack authentication app using Node.js, Express, JWT, and a clean HTML/JavaScript frontend","archived":false,"fork":false,"pushed_at":"2025-06-29T17:05:51.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-29T18:20:47.651Z","etag":null,"topics":["authentication","express","jwt","nodejs","rest-api"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/yuvrajnode.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":"2025-06-29T16:58:54.000Z","updated_at":"2025-06-29T17:13:11.000Z","dependencies_parsed_at":"2025-06-29T18:20:55.696Z","dependency_job_id":"5cb8fa56-49aa-4dbb-9834-576c799c9935","html_url":"https://github.com/yuvrajnode/jwt-auth-app","commit_stats":null,"previous_names":["yuvrajnode/jwt-auth-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yuvrajnode/jwt-auth-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuvrajnode%2Fjwt-auth-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuvrajnode%2Fjwt-auth-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuvrajnode%2Fjwt-auth-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuvrajnode%2Fjwt-auth-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuvrajnode","download_url":"https://codeload.github.com/yuvrajnode/jwt-auth-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuvrajnode%2Fjwt-auth-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32377587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T09:24:15.638Z","status":"ssl_error","status_checked_at":"2026-04-28T09:24:15.071Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["authentication","express","jwt","nodejs","rest-api"],"created_at":"2025-06-30T06:16:19.397Z","updated_at":"2026-04-28T10:36:17.096Z","avatar_url":"https://github.com/yuvrajnode.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"🔐 JWT Auth Login App\n\nThis is a simple full-stack authentication app built using **Node.js**, **Express**, and **JWT** on the backend, with a clean **HTML/CSS + JavaScript frontend** using **Axios** for API calls.\n\nIt demonstrates how to create, sign in, and validate users using **JSON Web Tokens**.\n\n\n 📁 Project Structure\n\n```\nW6-auth-app/\n│\n├── public/\n│   └── index.html        # Frontend UI (Signup, Signin, Logout)\n│\n├── index.js              # Express backend\n├── .gitignore\n├── package.json\n└── README.md\n```\n\n\n\n⚙️ Features\n\n✅ Signup new users  \n✅ Signin existing users  \n✅ Get user info using JWT  \n✅ JWT is stored in `localStorage`  \n✅ Middleware-protected route (`/me`)  \n✅ Clean frontend layout  \n✅ Logging via middleware  \n\n\n🧪 Technologies Used\n\nFrontend:\n- HTML5, CSS3\n- JavaScript\n- Axios (via CDN)\n\nBackend:\n- Node.js\n- Express.js\n- JSON Web Token (`jsonwebtoken`)\n\n\n🚀 Getting Started\n\n1. Clone the repository\n\n```bash\ngit clone https://github.com/yuvrajnode/jwt-auth-login-api.git\ncd jwt-auth-login-api\n```\n\n2. Install dependencies\n\n```bash\nnpm install\n```\n\n3. Run the server\n\n```bash\nnode index.js\n```\n\nVisit:  \n👉 `http://localhost:3000`\n\n\n🌐 Frontend Preview\n\nWhen you open `http://localhost:3000`:\n\n- You can **Signup** → token is generated and stored in `localStorage`\n- You can **Signin** → token received on login\n- **User info** loads automatically if logged in\n- **Logout** clears the token\n\n\n📦 API Endpoints\n\n| Method | Endpoint      | Description                  |\n|--------|---------------|------------------------------|\n| POST   | `/signup`     | Register a new user          |\n| POST   | `/signin`     | Login and receive a token    |\n| GET    | `/me`         | Get logged-in user info (protected) |\n\n\n🛡️ Authentication Flow\n\n1. User signs up or logs in → receives a **JWT**\n2. Token is stored in **`localStorage`**\n3. Frontend sends this token in **`Authorization` header**\n4. Backend middleware (`auth`) verifies token and extracts user\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuvrajnode%2Fjwt-auth-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuvrajnode%2Fjwt-auth-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuvrajnode%2Fjwt-auth-app/lists"}