Commit Graph

10 Commits

Author SHA1 Message Date
Will Chen
2272c6d2b3 fix supabase prompt (#1435)
Fixes #1364

<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Refreshes the Supabase prompt’s login state example to use the latest
onAuthStateChange event handling and unsubscribe pattern.
> 
> - **Prompts**:
>   - **Supabase system prompt (`src/prompts/supabase_prompt.ts`)**:
> - Revise login state management example to use
`supabase.auth.onAuthStateChange` with explicit events:
`INITIAL_SESSION`, `SIGNED_IN`, `SIGNED_OUT`, `PASSWORD_RECOVERY`,
`TOKEN_REFRESHED`, `USER_UPDATED`.
> - Update unsubscribe usage to `data.subscription.unsubscribe()` and
remove outdated async/getSession snippet.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
239d20769a02d102d168126f973a6cb4bf6d9e48. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
2025-10-02 21:53:05 -07:00
Will Chen
72be54e6c5 verify jwt to false (#1085)
fixes #1010 
    
<!-- This is an auto-generated description by cubic. -->
---

## Summary by cubic
Disable automatic JWT verification for Supabase Edge Functions and
update prompts/templates to require and demonstrate manual auth
handling. Fixes #1010.

- **Bug Fixes**
  - Set verify_jwt: false in function deployment.
- Updated Supabase prompt with an Authentication section and guidance to
manually verify tokens.
- Adjusted the hello function template to check the Authorization header
and return 401 when missing.

<!-- End of auto-generated description by cubic. -->
2025-08-25 21:10:22 -07:00
Will Chen
475483dfe5 Update Supabase system prompt to follow security best practices (#760)
Fixes #604
2025-07-31 16:33:16 -07:00
Will Chen
91cfbbe36e Fix supabase prompt (#355) 2025-06-06 14:16:54 -07:00
Will Chen
6a8c90a15b Update system prompt to reduce Dyad hallucinating imports (#344)
Fixes #342
2025-06-05 16:55:46 -07:00
Will Chen
3b2fb12def Prompt to add supabase dependency 2025-04-23 13:01:17 -07:00
Will Chen
09deb98ba1 Add description (optional) to SQL query 2025-04-23 12:59:09 -07:00
Will Chen
ce3343978d Improve supabase system prompt to make deployment less annoying 2025-04-23 12:59:09 -07:00
Will Chen
6e1935bbba Support supabase function deployment 2025-04-23 12:59:09 -07:00
Will Chen
4294ce5767 Supabase support: client, auth & SQL 2025-04-23 12:59:09 -07:00