Your Rails app.
More ways to sign in.
Build on Rails authentication with email links, hardened sessions, and optional bot checks. Start here, then make it your own.
Rails 8.0+ Ruby 3.3+ MIT licensed
THE DOCUMENTATION
Find your next step
Get started
Add Latchkey to a development app and follow your first email link.
Authentication
Explore sign-in links, session controls, and optional captcha.
Make it fit
Look up a setting, adjust session lifetimes, or style the sign-in pages.
Get unstuck
Check a missing email, an expired link, or an unexpected sign-out.
A LITTLE CONTEXT
Built around the Rails you know
01
Keep your models
Latchkey uses the User and Session models from Rails’ authentication generator.
02
Enable what you need
Start with sessions. Add email links and bot checks when your app needs them.
03
Own the presentation
Use the included styles, map your own classes, or copy the views into your app.