Authentication
Definition
Authentication verifies the identity of a caller, using something it knows, has or is, and ends with a credential such as a session cookie or a signed token that later requests present instead of repeating the proof.
In practice
Authentication normally happens once per login at a dedicated system, an identity provider or the app's own login endpoint, using passwords checked against a slow salted hash, passkeys or MFA. After that, every request carries a credential that servers can verify cheaply: a random session id looked up in a store, or a signed token verified with a public key.
Knowing who someone is says nothing about what they may do; that is authorization, and confusing the two causes real bugs. HTTP muddles the names: 401 Unauthorized actually means "not authenticated". Weak spots are rarely the login form itself but the surrounding flows: password reset, unthrottled token endpoints, credentials that never expire.
Example
A user signs in with a passkey; the server verifies the assertion, creates a session and returns Set-Cookie: __Host-sid=...; Secure; HttpOnly. Requests without a valid cookie get 401.