/next_auth

This is a Next.js application that demonstrates a complete authentication workflow, including user login, logout, and profile management. It integrates with backend services to handle secure authentication and user sessions, providing a seamless user experience.

Primary LanguageTypeScript

🔒 Next.js Authentication App

This is a Next.js application that demonstrates a complete authentication workflow, including user login, logout, and profile management. It integrates with backend services to handle secure authentication and user sessions, providing a seamless user experience.

💫 Features

User Registration: Sign up with a username, email, and password.

  • Login & Logout: Authenticate users with email and password, and securely log out.

  • Profile Management: View and update user profile details.

  • Error Handling: Informative error messages and loading states.

Installation

Clone the Repository:

git clone https://github.com/code-with-divyanshu/next_auth.git

Navigate to the Project Directory:

cd nextjs-authentication-app

Install Dependencies:

npm install

or

yarn install

Configure Environment Variables:

Create a .env file in the root directory and add your environment variables.

Example:

Check this sample env file

https://github.com/code-with-divyanshu/next_auth/blob/075760bceffcd9a6ce2b1bb6b06e0f0ae801915c/.env.sample

Run Website

npm run dev

or

The application will be available at http://localhost:3000.

Usage

  • Visit /login to access the login page.

  • Visit /signup to create a new account.

  • Visit /profile to view and manage your profile.

  • Visit /verify to view and verify your profile.

🤝 Contributing

Feel free to submit issues, fork the repository, and contribute via pull requests. Please follow the project's code of conduct and contribution guidelines.