MERN Stack Authentication Tutorial (Part 1 - The Backend) SalarC123 on June 24, 2021 This tutorial will be split into two parts because its a lengthy, although relatively straightforward, process, so stay tuned for the second part t... Read full post Collapse Expand Andrew Brower Andrew Brower Andrew Brower Follow Location Provo, Utah, USA Education Brigham Young University - Idaho Work Software Engineer Joined Jan 30, 2022 • Jan 30 '22 Dropdown menu Copy link Hide This blog post is excellent and really breaks the process down nicely. Thank you for taking the time to do this! Collapse Expand Winnie Nyambura Winnie Nyambura Winnie Nyambura Follow Software engineer Location Kenya Work Techpreneur Joined Sep 2, 2019 • Sep 4 '21 Dropdown menu Copy link Hide Well explained, much thanks! Collapse Expand Tiago Miranda Tiago Miranda Tiago Miranda Follow Joined Jan 28, 2023 • Jan 30 '23 Dropdown menu Copy link Hide Hi Salarc, this outcome is expected? I went to pick the token here, after emulating the login behavior Collapse Expand kangelkov kangelkov kangelkov Follow Joined May 30, 2023 • May 30 '23 Dropdown menu Copy link Hide You've lost me from the article when I saw that you're saving the JWT's in the localStorage. Best way would be to use a http-only cookie to save the JWT on user's end. Please, refrain from those bad practices! :) Collapse Expand Rahul Rahul Rahul Follow Crafting the future, debugging the past. Location Delhi, India Joined Jan 14, 2021 • Aug 15 '23 Dropdown menu Copy link Hide agree! Collapse Expand El-amiir El-amiir El-amiir Follow Talented front-end developer with a sense of art. Education Alexandria University Work Front end developer Joined Mar 6, 2021 • Mar 18 '22 Dropdown menu Copy link Hide Love It Thanks. Collapse Expand Ricardo Maya Ricardo Maya Ricardo Maya Follow Hello, I'd like to become a full-stack developer Location Chicago Work full-stack web developer at self-employed Joined Dec 1, 2020 • Apr 2 '22 Dropdown menu Copy link Hide Thanks for the post I thought it was very well articulated and helpful! Collapse Expand Amar Krishna Amar Krishna Amar Krishna Follow Joined Mar 28, 2023 • May 2 '23 Dropdown menu Copy link Hide Amazing tutorial Collapse Expand Romil Jain Romil Jain Romil Jain Follow ❤ I love what i do, web developer - MERN stack 🎯 Graphic designer - UI/UX 🤓 share my work regularly, so be sure to follow me ✍🏻 Location India Education MLV College Work Software Developer Joined Nov 6, 2021 • Dec 11 '23 Dropdown menu Copy link Hide Thanks man, Really easy to understand Collapse Expand KaramSahoo KaramSahoo KaramSahoo Follow Joined Dec 4, 2020 • May 15 '22 Dropdown menu Copy link Hide Really helpful! Collapse Expand Geno Ureta Geno Ureta Geno Ureta Follow Education Garcia College of Technology Work Front-end Developer Joined Oct 3, 2022 • Nov 19 '22 Dropdown menu Copy link Hide where is the .env file? Collapse Expand SalarC123 SalarC123 SalarC123 Follow Productivity, Javascript, ReactJS, Web Development Email salarwcheema@gmail.com Location United States Work Student Joined Mar 30, 2021 • Nov 22 '22 Dropdown menu Copy link Hide You create your own .env file. You don't want to share this online because it has your secret environment variables Collapse Expand zukhrofy abbar zukhrofy abbar zukhrofy abbar Follow try to conquer mern stack Joined Jul 4, 2022 • Dec 27 '22 Dropdown menu Copy link Hide in "Verify JSON Web Token" part, did you mean env.JWT_SECRET? Code of Conduct • Report abuse For further actions, you may consider blocking this person and/or reporting abuse
This blog post is excellent and really breaks the process down nicely. Thank you for taking the time to do this!
Well explained, much thanks!
Hi Salarc, this outcome is expected?
I went to pick the token here, after emulating the login behavior
You've lost me from the article when I saw that you're saving the JWT's in the localStorage.
Best way would be to use a http-only cookie to save the JWT on user's end. Please, refrain from those bad practices! :)
agree!
Love It Thanks.
Thanks for the post I thought it was very well articulated and helpful!
Amazing tutorial
Thanks man, Really easy to understand
Really helpful!
where is the .env file?
You create your own .env file. You don't want to share this online because it has your secret environment variables
in "Verify JSON Web Token" part, did you mean env.JWT_SECRET?