Skip to main content

What is JSON Web Token (JWT)?

Junior NodeJS
Quick Answer JWT is a compact, self-contained token for authentication. It contains three parts (header.payload.signature) รขโ‚ฌโ€ the payload carries user data (id, role), and the signature verifies it wasn't tampered with. Server issues a JWT on login; the client sends it in the Authorization header on subsequent requests. No session storage needed.

Answer

JWT is a compact token format for authentication, storing encoded user info verified using a secret or key.
S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice