Grokking System Design Fundamentals
Ask Author
Back to course home

0% completed

Vote For New Content
JWT: used for authentication or authorization or both?

Aniket Joshi

Mar 19, 2024

The reason I am asking this is , the description in the JWT section says : "..used in authorization..." vs. the use case only mentions about authentication.So, what is it exactly used for?

3

0

Comments
Comments
S
swapnil.aher a year ago

To my understanding it is used for both.

The JSON Web Token (JWT) is primarily used for authentication, but it can also carry information that helps with authorization.

  1. Authentication:    - Process: When a user logs in, the server verifies their credentials. If val...

On this page