Signup/login form with google OAuth 2.0 and facebook login.
- Create new account.
- Login with existing account.
- Login in with google account.
- Login in with facebook account.
- Secure login and signup functionality with session-based authentication.
- Efficiently creating and deleting user sessions, automatically handling session expiration.
- Ensuring user passwords are stored securely using hashing techniques.
- Html
- Typescript
- Scss
- Express
- EJS
To configure the application, you need to set the following environment variables in your .env
file:
MONGODB_URI
: Your MongoDB connection string.HOST
: The host address where your application will run.PORT
: The port on which your application will listen.CLIENT_ID
: Your google OAuth client ID.CLIENT_SECRET
: Your google OAuth Client secret.REDIRECT_URI
: Your google OAuth redirect url for google callback request.
To get started with the project, follow these steps:
-
Clone the repository:
git clone https://github.com/MAliHassanDev/login-and-signup-form-in-expressjs.git cd login-and-signup-form-in-expressjs
-
Install dependencies:
npm install
-
Start the application:
npm run dev
- My next project FullStack Ecommerce Store
- My previous project User Auth Vanilla Js