Browse Source

docs: add Edge Functions JWT verification table to CLAUDE.md

Document which Edge Functions have Supabase JWT verification disabled
in config.toml and explain why (OAuth callbacks, webhooks, custom auth).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Fszontagh 4 months ago
parent
commit
0896c76d70
1 changed files with 20 additions and 0 deletions
  1. 20 0
      CLAUDE.md

+ 20 - 0
CLAUDE.md

@@ -63,6 +63,26 @@ npx supabase login
 npx supabase link --project-ref <project-ref>
 npx supabase link --project-ref <project-ref>
 ```
 ```
 
 
+### Edge Functions JWT Verification
+
+Some Edge Functions have **built-in JWT/auth verification** and require Supabase's default JWT verification to be **disabled** in `config.toml`. This is configured with `verify_jwt = false`.
+
+| Function | Reason for Disabled Supabase JWT |
+|----------|----------------------------------|
+| `auth` | Handles login/signup - no token yet |
+| `shopify-oauth` | OAuth callback from Shopify |
+| `woocommerce-oauth` | OAuth callback from WooCommerce |
+| `oauth-shoprenter-init` | OAuth initiation for ShopRenter |
+| `oauth-shoprenter-callback` | OAuth callback from ShopRenter |
+| `webhook-shoprenter-uninstall` | Webhook from ShopRenter (HMAC verified) |
+| `validate-shoprenter-hmac` | HMAC validation endpoint |
+| `gdpr-webhooks` | GDPR webhooks from platforms |
+| `shop-data-api` | Public API with custom API key auth |
+| `woocommerce-scheduled-sync` | Internal scheduled sync (service role) |
+| `shoprenter-scheduled-sync` | Internal scheduled sync (service role) |
+
+**Important**: When adding new Edge Functions that handle OAuth callbacks, webhooks, or have custom authentication, add them to `supabase/config.toml` with `verify_jwt = false`.
+
 ## Technology Stack
 ## Technology Stack
 
 
 ### Frontend
 ### Frontend