Building apps
What is authentication?
Authentication is the process of proving who a user is, usually by checking something they know, something they have, or something they are, before granting them access to an application.
New to Bolt? Sign up free.
Technical definition
Authentication verifies a claimed identity. Common mechanisms:
- Password: a shared secret, stored as a salted hash rather than in readable form
- Magic link or one-time code: proof of control over an email address or phone number
- Single sign-on and OAuth: identity delegated to a provider such as Google
- Multi-factor: two or more independent factors combined
- Passkeys: public-key credentials bound to a device, resistant to phishing
After authentication, a session or token carries the verified identity across subsequent requests. Authentication answers who this is. Authorization answers what they may do.
In plain terms
Authentication is the login. It establishes that the person is who they say they are.
What they are allowed to do once inside is a separate question, and a separate system.
Why it matters
Authentication is the boundary between a page anyone can see and an application with customers in it. The moment your app holds anything belonging to a specific person, you need it.
The advice worth following is to not build it yourself. Password hashing, session handling, reset flows, and token expiry are solved problems with subtle failure modes, and a mistake in any of them exposes every account. Use the platform's authentication or a managed provider.
What you do need to get right is what happens after login. The most common serious flaw in a small business app is not a broken login. It is a working login with no access rules behind it, so any authenticated user can read any record by changing an ID in a request. Authentication without authorization is an unlocked building with a receptionist.
