28 Supabase Edge Functions (Deno) at kagtryxgjwavupzlmlzv.supabase.co/functions/v1/
| Function | Method | JWT | Purpose |
|---|---|---|---|
| handshake | POST/GET | Yes | Primary sync — compares checksums, returns updates |
| version-check | POST | No | App version check, forced update detection |
| app_logs | POST | Yes | Client logs, user report forwarding |
| Function | Method | JWT | Purpose |
|---|---|---|---|
| validate_purchase | POST | Yes | Course/subscription IAP (Google + Apple) |
| validate_purchase_ai_credits | POST | Yes | AI credit purchases |
| track_status | POST | Yes | Google Play RTDN (cancel/expire) |
| get-ai-credits-products | GET | No | AI credit product list |
| update-purchase-status | POST | No | Admin purchase updates |
| Function | Method | JWT | Purpose |
|---|---|---|---|
| generate_ai_token | POST | Yes | 15-min JWT for AI voice chat |
| update_ai_usage | POST | Yes | Deduct credits (weekly then bank) |
| Function | Method | JWT | Purpose |
|---|---|---|---|
| submit-custom-course | POST | Yes | Multi-step: health, scripts, audio, support |
| submit-custom-course-dev | POST | Yes | Dev version |
| redirect-custom-course | GET | Yes | Email deep link redirect |
| manage-regen-requests | POST | No | Audio regeneration |
| Function | Method | JWT | Purpose |
|---|---|---|---|
| update_json | POST/GET | Yes | Rebuild shop.json, update custom course data |
| data_validation | POST | Yes | Validate JSON schemas |
| calculate_checksum | POST | Yes | MD5 for R2 files or DB records |
| Function | Method | JWT | Purpose |
|---|---|---|---|
| delete-unlinked-user | POST | No | Clean up orphaned auth users |
| delete_account_data | POST | Yes | Two-step account deletion |
| referral_code_user_signup | POST | Yes | Attach referral code |
| Function | Method | JWT | Purpose |
|---|---|---|---|
| actions | POST | Mixed | Switch course, discounts, referrals, cohorts, sharing |
| verify_gen_link | POST | Yes | Verify gen link tokens |
| generate_signed_url | POST | Yes | Signed URLs for storage |
| generate_token | POST | Yes | General JWT generation |
| send-beta-invite | POST | Yes | Beta invite emails |
| upstash_redis_cache | POST | Yes | Redis cache management |
| update_cohorts | POST | Yes | Cohort management |
| handshake_dev | POST | Yes | Dev version of handshake |