Keep Codingkeepcodingblog.hashnode.dev·Sep 19, 2024How to implement Consent Mode for free?At least once a month, I meet with a couple of Heads of Marketing from other companies. We exchange our experiences, discuss interesting tools and the industry in general. During our February 2024 meeting, one subject dominated, and almost everyone e...DiscussGoogle
Vivekheyvivek.com·Jul 30, 2024Why You Should Avoid Storing Authentication Tokens in Local Storage 🚫🔑In the realm of web development, securely managing authentication tokens is crucial for protecting user data and maintaining application integrity. A common approach for storing these tokens is using localStorage due to its simplicity and ease of use...Discuss·11 likes·187 readsauthentication
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
Opeyemi Ojoopyjo2.hashnode.dev·Jun 10, 2024Using Cookies to Manage Authentication Tokens in Next.jsIn web development, managing user sessions efficiently and securely is crucial. One of the reliable ways to handle session data is by using cookies. Cookies are small pieces of data sent from a server and stored on the user's browser while the user i...Discuss·37 readsJavaScript
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