What problem does it solve?
This Skill addresses the complexity of implementing authentication and authorization in Inertia Rails applications, providing a comprehensive solution for setting up login, sessions, permissions, and access control.
Core Features & Use Cases
- Authentication Setup: Offers detailed guides for integrating Devise, has_secure_password, or other authentication solutions with Inertia Rails.
- Shared Authentication State: Demonstrates how to share authentication state between frontend and backend for seamless user experience.
- Login Page Creation: Provides examples of creating login pages for both Vue and React with Inertia.js integration.
- Authorization: Includes explanations on passing permissions as props and using Pundit or Action Policy for authorization checks.
- Protected Routes: Walks through setting up protected routes and role-based access control.
Quick Start
Generate an authentication setup using Devise and Inertia by running the provided command in your terminal: rails generate inertia:install:auth