@capgo/capacitor-supabase 8.0.4 → 8.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,8 +1,38 @@
1
1
  # @capgo/capacitor-supabase
2
+ <a href="https://capgo.app/"><img src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/></a>
3
+
4
+ <div align="center">
5
+ <h2><a href="https://capgo.app/?ref=plugin_supabase"> ➡️ Get Instant updates for your App with Capgo</a></h2>
6
+ <h2><a href="https://capgo.app/consulting/?ref=plugin_supabase"> Missing a feature? We'll build the plugin for you 💪</a></h2>
7
+ </div>
2
8
 
3
9
  Native Supabase SDK integration for Capacitor - Auth, Database, and JWT access.
4
10
 
5
- This plugin provides native iOS and Android Supabase SDK functionality with the ability to retrieve JWT tokens for use in JavaScript/web layers.
11
+ ## Why Capacitor Supabase?
12
+
13
+ A native Supabase SDK integration that provides **real native authentication** with JWT token access for your Capacitor apps:
14
+
15
+ - **Native SDK integration** - Full access to Supabase's native iOS and Android SDKs
16
+ - **JWT token access** - Get JWT tokens from native auth for use in JavaScript/web layers
17
+ - **Complete auth methods** - Email/password, OAuth, OTP, magic links, and more
18
+ - **Session management** - Native session handling with automatic token refresh
19
+ - **Database operations** - Native CRUD operations for Supabase tables
20
+ - **Auth state listeners** - Real-time auth state change events
21
+ - **Hybrid approach** - Use native auth with supabase-js for database queries
22
+ - **Free and open source** - No paid services required
23
+
24
+ Perfect for apps that need secure native authentication while leveraging Supabase's powerful backend services.
25
+
26
+ **Why only Auth and basic DB operations?** The Supabase JS SDK already works great in Capacitor for most features (Realtime, Storage, Edge Functions, etc.). Building native bridges for every feature would add complexity without real benefits. This plugin focuses on **authentication** where native SDKs provide actual value (secure token storage, OAuth flows, biometrics). For everything else, just use `@supabase/supabase-js` with the JWT from native auth.
27
+
28
+ **Why not bridge everything natively?**
29
+ - **No performance gain** - The bridge overhead (JSON serialization/deserialization between JS and native) negates any benefit from skipping HTTP preflight requests. You're just moving the transformation cost from network to CPU.
30
+ - **Type safety issue** - Native SDKs require typed models for every table/query. You'd need to define Swift/Kotlin types for your entire database schema and keep them in sync. With JS, you get dynamic typing that just works.
31
+ - **Maintenance burden** - Every Supabase SDK update would require updating 3 codebases (JS, iOS, Android) instead of just one. The JS SDK is already well-maintained by Supabase.
32
+
33
+ ## Documentation
34
+
35
+ The most complete doc is available here: https://capgo.app/docs/plugins/supabase/
6
36
 
7
37
  ## Install
8
38
 
@@ -4,7 +4,7 @@ import Supabase
4
4
 
5
5
  @objc(CapacitorSupabasePlugin)
6
6
  public class CapacitorSupabasePlugin: CAPPlugin, CAPBridgedPlugin {
7
- private let pluginVersion: String = "8.0.4"
7
+ private let pluginVersion: String = "8.0.6"
8
8
  public let identifier = "CapacitorSupabasePlugin"
9
9
  public let jsName = "CapacitorSupabase"
10
10
  public let pluginMethods: [CAPPluginMethod] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-supabase",
3
- "version": "8.0.4",
3
+ "version": "8.0.6",
4
4
  "description": "Native Supabase SDK integration for Capacitor - Auth, Database, and JWT access",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",