Class: Supabase::Rails::BaseController

Inherits:
ApplicationController
  • Object
show all
Includes:
Authentication
Defined in:
app/controllers/supabase/rails/base_controller.rb

Overview

Base class for all ‘Supabase::Rails::*Controller` shells (FR-W8 / US-017). Inherits from the host app’s ‘::ApplicationController` so layouts, CSRF protection, helpers, and any global before_actions defined on the host’s base class flow through to the gem’s controllers. Includes the Authentication concern so the FR-W5 surface (‘require_authentication` before_action, `allow_unauthenticated_access` macro, `start_new_session_for`, `terminate_session`, low-level `supabase_*` helpers, override hooks) is available to subclasses.

Method Summary

Methods included from Authentication

#after_authentication_url, #authenticate_with_supabase, #authenticated?, #current_user, expose_current_user?, railtie_config, redact_email, #request_authentication, #require_authentication, #start_new_session_for, #store_location_for_redirect, #stored_location_for_redirect, #supabase_exchange_code_for_session, #supabase_resend, #supabase_reset_password, #supabase_sign_in_with_oauth, #supabase_sign_in_with_otp, #supabase_sign_in_with_password, #supabase_sign_up, #supabase_update_user, #supabase_verify_otp, #terminate_session