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. -->
This commit is contained in:
Will Chen
2025-08-25 21:10:22 -07:00
committed by GitHub
parent d8e54d9a10
commit 72be54e6c5
2 changed files with 39 additions and 12 deletions

View File

@@ -187,6 +187,8 @@ export async function deploySupabaseFunctions({
JSON.stringify({
entrypoint_path: "index.ts",
name: functionName,
// See: https://github.com/dyad-sh/dyad/issues/1010
verify_jwt: false,
}),
);
formData.append("file", new Blob([content]), "index.ts");