Skip to main content
← Tool Garage

Protect station

Clerk

Drop-in sign-in: email, Google, sessions, and the boring parts of accounts.

1. Learn it

  • Authentication is 'who are you'; authorisation is 'what are you allowed to do'. Different jobs.
  • A session is the proof you stay signed in between page loads.
  • OAuth is signing in with Google or GitHub instead of a new password.
  • Never write your own password storage. Not once.

Cost: Free up to a few thousand users.

2. Practice it

Simulated — nothing real happens

Split auth from permissions

A signed-in user opens another user's invoice. Which layer should stop them — sign-in or permissions?

3. Connect it

Real — your own account
  1. 1Create a Clerk app, copy the keys into secrets, wrap your app in its provider.
Open Clerk

MessyDev never signs you up, spends your money, or touches your accounts. You do that part.

4. Use it

Any app with user accounts where you do not want to build login yourself.

Honest alternatives

There is no single correct stack. Any of these would be a reasonable choice instead.

  • Supabase Auth
  • Better Auth
  • Auth0

More in Protect