Authentication vs authorization
Two words one letter apart that solve different problems: proving who someone is, and deciding what they may do. Plus how each one fails.
Authentication verifies identity; authorization decides access. Learn why a successful login can still produce a denied request or an empty list.
Start with the guide that matches your question or the error you can see. Each guide below names the problem, gives checks you can run, and links to related reading.
Sign-in establishes identity; it does not grant every permission. In this hypothetical example, Account A signs in successfully and requests Account B's private record. A denial is the correct result. Granting every signed-in user access would turn a confusing screen into a security defect.
An app should not announce that a protected save succeeded when the server rejected it. It should preserve recoverable input where appropriate, show that sign-in is needed and let the user retry after identity is restored. A hidden navigation item is not an access control: the server still needs to reject direct requests.
Start with Authentication versus authorization below. For a concrete 401, follow the linked troubleshooting guide and inspect credentials before changing permissions. Never share a session token when asking for help.
Two words one letter apart that solve different problems: proving who someone is, and deciding what they may do. Plus how each one fails.
Looking for something else? Browse every topic.