@capgo/capacitor-supabase
Overview
Section titled “Overview”@capgo/capacitor-supabase focuses on the parts where native Supabase SDKs give Capacitor apps real value: authentication flows, session persistence, token refresh, and direct JWT access.
Use the plugin for native auth and session management, then pass the native JWT to @supabase/supabase-js for Realtime, Storage, Edge Functions, and advanced querying.
Core Capabilities
Section titled “Core Capabilities”- Native Supabase client initialization.
- Email/password sign-in and sign-up.
- OTP, magic link, OAuth, and session helpers.
- Native auth state listeners.
- JWT access for JavaScript or backend calls.
- Basic native
select,insert,update, anddeletehelpers.
Recommended Architecture
Section titled “Recommended Architecture”| Concern | Recommended path |
|---|---|
| Authentication | Use @capgo/capacitor-supabase. |
| Session persistence and refresh | Use @capgo/capacitor-supabase. |
| Advanced database queries | Use @supabase/supabase-js with the native JWT. |
| Realtime, Storage, Edge Functions | Use @supabase/supabase-js. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-supabase.
Keep going from @capgo/capacitor-supabase
Section titled “Keep going from @capgo/capacitor-supabase”If you are using @capgo/capacitor-supabase to plan security and compliance, connect it with Encryption for the implementation detail in Encryption, Compliance for the implementation detail in Compliance, Capgo Security Scanner for the product workflow in Capgo Security Scanner, Capgo Security for the product workflow in Capgo Security, and Capgo Trust Center for the product workflow in Capgo Trust Center.