hotwire-native-auth
OfficialAdd secure web auth to Hotwire Native apps
Software Engineering#stimulus#hotwire-native#mobile navigation#bridge components#rails authentication#webview sign-in#cookie session
AuthorLaunchPadLab
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents duplicated native login work by reusing your existing Rails authentication UI and logic inside Hotwire Native iOS and Android apps, so sign-in and sign-out behave consistently across web and mobile.
Core Features & Use Cases
- Reuses Rails session pages: Use the existing
/session/newform (no extra native login UI, no new JSON auth endpoints). - Bridges auth state to native navigation: Sends
signIn/signOutfrom a Stimulus bridge to iOS/Android components that toggle tab visibility and screen stacks. - Implements persistent cookie authentication: Uses
cookies.signed.permanentfor a long-livedsession_tokenso the native app can resume authenticated state reliably. - Use case: You want a Hotwire Native app where “Posts” and “My Profile” only appear after login, while “Sign In” is shown until authenticated, using the same Rails controllers and views.
Quick Start
Set up Rails cookie-based session persistence, add the bridge meta tag and authentication Stimulus controller, then register the iOS/Android authentication bridge components to toggle your tab bar based on the rendered server-side authenticated state.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: hotwire-native-auth Download link: https://github.com/LaunchPadLab/ai-bank/archive/main.zip#hotwire-native-auth Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.