---
title: "Discussion on \"A Beginners guide to User Authentication and Authorization with JSON WEB TOKENS versus Sessions in NodeJs\" | Hashnode"
description: "Discussion on \"A Beginners guide to User Authentication and Authorization with JSON WEB TOKENS versus Sessions in NodeJs\". In a web server, authentication (https://g.co/kgs/Yy9RH2)  is used to verify a user in the client-side trying to access the database or the site. The server can achieve this in various ways but in most cases, the server uses the user's information li..."
url: "https://hashnode.com/posts/a-beginners-guide-to-user-authentication-and-authorization-with-json-web-tokens-versus-sessions-in-nodejs/5fbfeff8c350f1452c557d16"
---

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

Discussion

# [A Beginners guide to User Authentication and Authorization with JSON WEB TOKENS versus Sessions in NodeJs](https://debbie.hashnode.dev/a-beginners-guide-to-user-authentication-and-authorization-with-json-web-tokens-versus-sessions-in-nodejs?utm_source=hashnode&utm_medium=feed)

In a web server, authentication (https://g.co/kgs/Yy9RH2) is used to verify a user in the client-side trying to access the database or the site. The server can achieve this in various ways but in most cases, the server uses the user's information li...

Nov 26, 2020 · 24 min read · debbie.hashnode.dev  
Read the article

-   [#nodejs-cjclz8y2l000dtpwt144m8ti8](https://hashnode.com/tag/nodejs-cjclz8y2l000dtpwt144m8ti8)
-   [#jwt](https://hashnode.com/tag/jwt)
-   [#authentication](https://hashnode.com/tag/authentication)
-   [#authorization](https://hashnode.com/tag/authorization)

## Written by

[Deborah Emeni](https://hashnode.com/@DeborahEmeni)

@DeborahEmeni · Rivers, Nigeria

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

Software Developer

I'm Deborah Emeni, a Software Developer, technical writer and founder of the DevOps Learning Space (DLS) community. I'm passionate about DevRel and Tech communities, I enjoy speaking at conferences and tech events. I love sharing knowledge and simplifying complex topics by writing articles. So check out my blog! 😊

## Responses 1

Markdown supported · ⌘↵ to post

[Hrithwik Bharadwaj](https://hashnode.com/@hrithwik)

[Feb 13, 2021](https://hashnode.com/posts/a-beginners-guide-to-user-authentication-and-authorization-with-json-web-tokens-versus-sessions-in-nodejs/5fbfeff8c350f1452c557d16/comment/6027982ae522c1626f371fcc)

Clean and detailed explanation ✅
