Core: learn it Step 12 of 16 on the Backend Developer (Django) roadmap
Authentication for APIs
Browsers can use Django's session cookies, but mobile apps and separate frontends usually send a token with every request. You also have to decide who may call each endpoint and what they may do. Getting this right protects your users' data.