What is the difference between authentication and authorisation?
Model answer
Authentication checks who you are (login). Authorisation checks what you are allowed to do (roles, ownership). For example, a signed-in user (authenticated) may edit only their own posts (authorised).
Learn this topic
Login with JWT: Sign In, Issue a Token and Avoid Timing Leaks in the course MERN Stack Full Course: MongoDB, Express, React and Node.js.
Sign in to add your own answer.