{"id":26078135,"url":"https://github.com/syipmong/authentication-template","last_synced_at":"2026-03-06T19:35:43.002Z","repository":{"id":280026828,"uuid":"940786523","full_name":"Syipmong/authentication-template","owner":"Syipmong","description":"This project provides a comprehensive template for implementing authentication in your application. It includes setup and configuration for user registration, login, and session management.","archived":false,"fork":false,"pushed_at":"2025-03-08T09:03:26.000Z","size":134,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T05:30:11.872Z","etag":null,"topics":["app","atlas","authentication","authjs","middleware","mongo","mongodb","mongodb-atlas","mongodb-database","next15","nextjs","prisma","prisma-orm","reactjs","router","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Syipmong.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":"2025-02-28T19:41:39.000Z","updated_at":"2025-03-23T13:07:16.000Z","dependencies_parsed_at":"2025-02-28T23:05:21.165Z","dependency_job_id":"4c793f99-261e-4c9d-8dcf-73e43ec5d885","html_url":"https://github.com/Syipmong/authentication-template","commit_stats":null,"previous_names":["syipmong/authentication-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syipmong%2Fauthentication-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syipmong%2Fauthentication-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syipmong%2Fauthentication-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syipmong%2Fauthentication-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Syipmong","download_url":"https://codeload.github.com/Syipmong/authentication-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497901,"owners_count":21113982,"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":["app","atlas","authentication","authjs","middleware","mongo","mongodb","mongodb-atlas","mongodb-database","next15","nextjs","prisma","prisma-orm","reactjs","router","typescript"],"created_at":"2025-03-09T03:49:54.525Z","updated_at":"2026-03-06T19:35:37.960Z","avatar_url":"https://github.com/Syipmong.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authentication Template\n\nThis project provides a comprehensive template for implementing authentication in your application. It includes setup and configuration for user registration, login, and session management.\n\n## Features\n\n- User registration\n- User login\n- Session management\n- middleware\n- Password hashing\n- Token-based authentication\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js\n- npm or yarn\n\n### Installation\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/syipmong/authentication-template.git\n    ```\n\n2. Navigate to the project directory:\n\n    ```bash\n    cd authentication-template\n    ```\n\n3. Install dependencies:\n\n    ```bash\n    npm install\n    ```\n\n    or\n\n    ```bash\n    pnpm install\n    ```\n\n### Configuration\n\n1. Create a `.env` file in the root directory and add the following environment variables:\n\n    ```env\n    DATABASE_URL=your_database_url\n    ```\n\n### Running the Application\n\n1. Start the development server:\n\n    ```bash\n    npm start\n    ```\n\n    or\n\n    ```bash\n    yarn start\n    ```\n\n2. Open your browser and navigate to `http://localhost:3000`.\n\n## Usage\n\n- Register a new user by sending a POST request to `/auth/register` with the user's details.\n- Login a user by sending a POST request to `/auth/login` with the user's credentials.\n- Access protected routes by including the JWT token in the Authorization header.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n\n## License\n\n\u003c!-- This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. --\u003e\n\n## Acknowledgements\n\nSpecial thanks to all the contributors and open-source projects that made this template possible.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyipmong%2Fauthentication-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyipmong%2Fauthentication-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyipmong%2Fauthentication-template/lists"}