@capgo/capacitor-supabase
Native Supabase authentication, JWT access, and basic database helpers for Capacitor
Overview
Section titled “Overview”Native Supabase authentication, JWT access, and basic database helpers for Capacitor
Start with initialize() and the other core methods listed below.
Platform support
Section titled “Platform support”| Platform | Support | Notes |
|---|---|---|
| iOS | Yes | Native |
| Android | Yes | Native |
| Web | No | Guard with Capacitor.getPlatform() |
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.