37signals-auth

Implement passwordless magic-link authentication for Ruby on Rails 8.2+ apps.

1|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/joshyorko/agent-skills --skill 37signals-auth
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: 37signals-auth
Source: https://github.com/joshyorko/agent-skills/tree/main/plugins/rails-37signals-patterns/skills/37signals-auth
Command: npx skills add https://github.com/joshyorko/agent-skills --skill 37signals-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Passwordless authentication with magic links solves the friction of onboarding and password management in Rails apps by providing a lightweight, secure sign-in flow without Devise.

Core Features & Use Cases

  • Passwordless sign-in via magic links
  • Database-backed Identity, Session, and MagicLink models with token-based sessions
  • Optional password support for API clients
  • Secure session handling with has_secure_token and signed cookies
  • End-to-end flows for web and API clients (sign-in, sign-out, and session renewal)
  • Real-world use case: a user signs up with an email, receives a login link, clicks it, and lands authenticated with an active session

Quick Start

Install and wire up the Identity, Session, and MagicLink components to enable a magic-link sign-in flow, starting by triggering a magic link to the user's email.

Frequently Asked Questions about 37signals-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up passwordless authentication with magic links in Rails?▼

Passwordless authentication in Rails uses email-based magic links to sign users in without passwords. You wire up Identity, Session, and MagicLink models with has_secure_token to generate links and manage secure sessions via signed cookies.

What is the best Devise alternative for passwordless sign-in with magic links?▼

A lightweight Devise alternative for passwordless sign-in uses custom Identity, Session, and MagicLink models instead of a heavy gem. It provides email-based magic link delivery and database-backed token sessions for Ruby on Rails 8.2+ applications.

Can I use passwordless magic links for API clients in Rails?▼

Yes, passwordless magic links support API clients in Rails. The authentication flow includes optional password support specifically for API access, alongside end-to-end sign-in, sign-out, and session renewal flows for both web and API environments.

How does session management work in a passwordless Rails application?▼

Session management in a passwordless Rails app uses database-backed Session models with has_secure_token and signed cookies. When a user clicks a magic link, the system validates the token and establishes a secure, active session for web or API clients.

Do I need Devise to implement magic link authentication in Ruby on Rails?▼

No, you do not need Devise to implement magic link authentication in Ruby on Rails. You can build a lightweight, secure sign-in flow using built-in features like has_secure_token, database-backed models, and signed cookies for session handling.

What are the limitations of using magic links for Rails session management?▼

Magic link session management relies on email delivery, meaning sign-in fails if the user's email is inaccessible or delivery is delayed. It also requires database-backed MagicLink and Session models to handle token generation, validation, and expiration securely.