himanshugopalkdwivedi.hashnode.dev·Jul 10, 2024(lt.47)"Mastering Node.js: Creating a Server with HTTP Module, URL Handling, Express.js Frameworks, Port Numbers, and REST API IntegrationWe can create a server using http module in NodeJS In Nodejs, the HTTP (which stands for Hyper Transfer protocol) module is a core module that provides functionality for creating and interacting with HTTP servers and clients.A HTTP request is a messa...Discuss·10 likesWeb Development
BrowserScanbrowserscan.hashnode.dev·Jun 21, 2024User Authentication: Cookies vs Sessions vs TokensEnsuring secure access to websites and applications is a critical concern, but how you set up access depends on how you store the data to be authenticated. This, in turn, enables user authorization. Cookies, sessions, and tokens are three common ways...Discusscookies
Manish Kumar Guptaheismanish.hashnode.dev·Jun 14, 2024Why NextAuth uses cookies??Introduction So we want to authenticate our user in our NextJS app, right? Then why don't we just make a request to the server the first time for authentication, get the JWT token, and then maybe store it in our local storage and keep sending the tok...Discussnextauth
Manish Kumar Guptaheismanish.hashnode.dev·Jun 14, 2024Understanding Cookies in Web DevelopmentIntroduction In this blog, we'll delve deeper into the types of cookies, their properties, and the importance of cookies in web development, especially in the context of authentication and security. Types of Cookies 🍪 Persistent Cookies: Stays even...Discusscookies
Abhinav Jhaabhinav3254.hashnode.dev·Jun 9, 2024I am able to set cookie in Postman, but not able to set it in browserI faced the same issue, but then I tried this solution. My backend is built in Node.js, and for the frontend, we just need to add this line: withCredentials: true. Here's what I did: // my backend code // just do this simple thing in your cors app.u...DiscussCORS
Sahil Bishtcodemaniac-sahil.hashnode.dev·Apr 18, 2024Step-by-Step Guide to Implementing Authentication in Nodejs and MongoDB with JWT and CookiesAuthentication is a critical aspect of web development, ensuring that only authorized users gain access to protected resources. In this blog, we will delve into the world of authentication in Node.js and storing the user’s credentials on MongoDB, foc...DiscussJavaScript
Nishant Tomerdevxnishant.hashnode.dev·Feb 9, 2024Navigating Stateful Seas: A Deep Dive into Cookies and Cookie Parser in Backend DevelopmentIntroduction: In the vast ocean of backend development, the concept of cookies emerges as a beacon for managing state and enhancing user experiences. The Cookie Parser, a trusty companion in this voyage, helps developers navigate the complexities of ...Discussbackend system
Segun Ajibolaajibolasegun.hashnode.dev·Feb 2, 2024Understanding Cookies: How Websites and Web Browsers Handle Your Data Behind the ScenesIntroduction Hey there, want some cookies? I know you already know what cookies are. A cookie is a baked or cooked snack or dessert that is small, flat and sweet.... Nah, not that. Not in a website. You will be learning about different cookies, this...Discuss·202 readscookies
Pathik Shahpathik455.hashnode.dev·Aug 15, 2023JWT (JSON Web tokens) vs. Session CookiesSession Cookie-based approach: 1. Server generates a "sessionId" (signs it using "secret key"), and (a) saves the sessionId in a sessionDB, and (b) sends a cookie with the sessionId to the browser (client side). 2. The browser (client side) receiv...Discuss·2 likesJWT
Vannyou 🚀vannnyoutang.hashnode.dev·Jun 24, 2023🔑 Using HttpOnly Cookie for Session Management in Next.js👋 Hello there! Are you building a Next.js project, and then wondering how to keep your user logged in after getting an access token from your backend server 🤔 ? And... are you thinking that storing your user's session in browser storage (including ...Discuss·92 readsNext.js Auth 🔐Next.js