{"id":21273068,"url":"https://github.com/djimenezweb/mern-auth","last_synced_at":"2026-04-09T15:46:47.173Z","repository":{"id":262897515,"uuid":"887839053","full_name":"djimenezweb/mern-auth","owner":"djimenezweb","description":"Basic full stack authentication system built with Express, React and shadcn/ui","archived":false,"fork":false,"pushed_at":"2024-11-27T15:46:54.000Z","size":638,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T03:08:38.127Z","etag":null,"topics":["bcrypt","express","jwt","mern","mern-stack","mongodb","mongoose","node","react","shadcn-ui","tailwindcss"],"latest_commit_sha":null,"homepage":"https://mern-auth-o1gw.onrender.com/","language":"TypeScript","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/djimenezweb.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":"2024-11-13T11:25:27.000Z","updated_at":"2024-11-27T15:46:57.000Z","dependencies_parsed_at":"2024-11-14T22:39:09.486Z","dependency_job_id":null,"html_url":"https://github.com/djimenezweb/mern-auth","commit_stats":null,"previous_names":["djimenezweb/mern-auth"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djimenezweb%2Fmern-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djimenezweb%2Fmern-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djimenezweb%2Fmern-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djimenezweb%2Fmern-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djimenezweb","download_url":"https://codeload.github.com/djimenezweb/mern-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243732252,"owners_count":20338831,"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":["bcrypt","express","jwt","mern","mern-stack","mongodb","mongoose","node","react","shadcn-ui","tailwindcss"],"created_at":"2024-11-21T09:12:05.514Z","updated_at":"2025-12-30T19:11:56.353Z","avatar_url":"https://github.com/djimenezweb.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MERN Auth\n\nBasic custom username/password auth system.\n\nLive demo: https://mern-auth-o1gw.onrender.com\n\n- Session based\n- Role authorization (user, admin)\n- Authenticated users can log in and see their own open sessions.\n- Admins can delete users, invalidate sessions and close other user's sessions.\n\n[![Screen capture](./client/public/screenshot.png)](https://mern-auth-o1gw.onrender.com)\n\n## Back End\n\n- Node.js + Express\n- Refresh and Access Tokens (JWT)\n- Hashed passwords (bcrypt)\n- HttpOnly Cookies (cookie-parser)\n- MongoDB \u0026 Mongoose\n- Custom middleware\n- Protected endpoints\n- Auto delete expired sessions from database\n\n## Front End\n\n- Vite + React + TypeScript\n- Shadcn/ui\n- Tailwind CSS\n- Icons: [Lucide](https://lucide.dev/) + [react-icons](https://react-icons.github.io/react-icons/)\n- Fonts: [Jost](https://indestructibletype.com/Jost.html) + [JetBrainsMono](https://www.jetbrains.com/lp/mono/)\n\n## Usage\n\n- Create a MongoDB database and copy your URI\n- Create new `.env` files following the `.env.example` files in both `client` and `server` folders\n\n### Install server dependencies and run:\n\n```bash\ncd server\nnpm install\nnpm run dev\n```\n\n### Install client dependencies and run:\n\n```bash\ncd client\nnpm install\nnpm run dev\n```\n\n## License\n\nLicensed under the MIT License. Check the [LICENSE](./LICENSE.md) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjimenezweb%2Fmern-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjimenezweb%2Fmern-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjimenezweb%2Fmern-auth/lists"}