---
title: "Discussion on \"02 config: Authentication- Login, Logout, Forgot\" | Hashnode"
description: "Discussion on \"02 config: Authentication- Login, Logout, Forgot\". 📝0.1 ./app.js\n// Load environment variables from .env file\nrequire('dotenv').config({ path: './.env' });\n\n// Import route handlers\nvar indexRouter = require('./routes/index.routes');\nvar userRouter = require('./routes/user.routes');\n\n// Create an Ex..."
url: "https://hashnode.com/posts/02-config-authentication-login-logout-forgot/6679769c6590fc82375ca919"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [02 config: Authentication- Login, Logout, Forgot](https://krayush1109.hashnode.dev/02-config-authentication-login-logout-forgot?utm_source=hashnode&utm_medium=feed)

📝0.1 ./app.js // Load environment variables from .env file require('dotenv').config({ path: './.env' }); // Import route handlers var indexRouter = require('./routes/index.routes'); var userRouter = require('./routes/user.routes'); // Create an Ex...

Jun 24, 2024 · 4 min read · krayush1109.hashnode.dev  
Read the article

-   [#authentication](https://hashnode.com/tag/authentication)
-   [#passwords](https://hashnode.com/tag/passwords)
-   [#login](https://hashnode.com/tag/login)
-   [#logout](https://hashnode.com/tag/logout)
-   [#passportjs](https://hashnode.com/tag/passportjs)

## Written by

[Ayush Kumar](https://hashnode.com/@krayush1109)

@krayush1109 · Bhopal

  
[View profile](https://hashnode.com/@krayush1109)

MERN Stack Developer

A passionate MERN Stack Developer from India I am a full stack web developer with experience in building responsive websites and applications using JavaScript frameworks like ReactJS, NodeJs, Express etc.,

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
