Rails Token Auth

Build secure DB-backed token session auth in Rails — one mechanism for web, Action Cable, and Hotwire Native, with Current attributes and secure-by-default controller concerns. Use when adding login/sessions to a Rails app, when web and native clients need to share authentication, when you need revocable server-side sessions (logout/kick a device) instead of stateless JWTs, or when auditing existing auth for user-enumeration, plaintext tokens, readable cookies, or opt-in-auth mistakes. Provides templates and a security audit.

davidteren 97b87b6 8 files · 18.3 KB Updated

File contents

davidteren/hotwire-codex-skills/tree/main/skills/rails-token-auth commit 97b87b6250

Frequently asked questions

npx skillmds@latest add davidteren/rails-token-auth