{"id":21175929,"url":"https://github.com/shadowslayer03/nextjs-authentication","last_synced_at":"2025-03-14T18:23:20.466Z","repository":{"id":250827650,"uuid":"835403534","full_name":"ShadowSlayer03/NextJS-Authentication","owner":"ShadowSlayer03","description":"A Next.js application demonstrating client-side authentication and user profile management. ","archived":false,"fork":false,"pushed_at":"2024-07-30T06:40:25.000Z","size":99,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T11:29:41.543Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://next-js-authentication-brown.vercel.app","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/ShadowSlayer03.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-07-29T19:05:56.000Z","updated_at":"2024-07-30T06:41:58.000Z","dependencies_parsed_at":"2024-07-30T10:09:09.512Z","dependency_job_id":null,"html_url":"https://github.com/ShadowSlayer03/NextJS-Authentication","commit_stats":null,"previous_names":["shadowslayer03/nextjs-authentication"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadowSlayer03%2FNextJS-Authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadowSlayer03%2FNextJS-Authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadowSlayer03%2FNextJS-Authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadowSlayer03%2FNextJS-Authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShadowSlayer03","download_url":"https://codeload.github.com/ShadowSlayer03/NextJS-Authentication/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243624091,"owners_count":20321029,"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":[],"created_at":"2024-11-20T17:00:38.472Z","updated_at":"2025-03-14T18:23:20.443Z","avatar_url":"https://github.com/ShadowSlayer03.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js Authentication and Profile Management\n\nThis project is a Next.js application showcasing client-side authentication and user profile management. It includes routes for login, signup, viewing user profiles, and logging out.\n\n## Features\n\n- **Login**: Authenticates users and grants access to the application.\n- **Signup**: Allows users to create a new account.\n- **Profile**: Displays user profile information such as username and email.\n- **Logout**: Logs the user out and clears their session.\n\n## Technologies Used\n\n- [Next.js](https://nextjs.org/) - React framework for server-side rendering.\n- [Axios](https://axios-http.com/) - Promise-based HTTP client for making API requests.\n- [React Hot Toast](https://react-hot-toast.com/) - Simple and customizable toasts for notifications.\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js (\u003e= 14.x)\n- npm or Yarn\n\n### Installation\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/ShadowSlayer03/https://github.com/ShadowSlayer03/NextJS-Authentication.git\n\n2. **Navigate to the Project Directory:**\n\n    ```bash\n    cd NextJS-Authentication\n\n3. **Install Dependencies**\n\n    ```bash\n    npm install\n    # or\n    yarn install\n\n\n### Running the Application\n\n1. **Start the Development Server:**\n\n   ```bash\n   npm run dev\n   # or\n   yarn dev\n\n2. **Open Your Browser and Visit**\n\n   ```bash\n   http://localhost:3000\n\n\n### Usage\n\n- Login: Navigate to /login to authenticate.\n- Signup: Go to /signup to create a new account.\n- Profile: Access /profile to view user details and log out.\n\n### API Endpoints\n- POST /api/auth/login - Handles user login.\n- POST /api/auth/signup - Registers a new user.\n- GET /api/users/profile - Retrieves user profile information.\n- GET /api/users/logout - Logs out the user.\n\n### Contributing\nFeel free to open issues or submit pull requests. Contributions are welcome!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadowslayer03%2Fnextjs-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshadowslayer03%2Fnextjs-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadowslayer03%2Fnextjs-authentication/lists"}