Commit Graph

13 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
12433e49e3 Implement 5-day plan 2025-10-21 12:37:28 +00:00
pac7
aee512b8a1 Improve security by auditing service role key usage in edge functions
Audit and document the usage of service role keys in multiple Supabase edge functions (cancel-email-change, process-selective-approval, seed-test-data) to ensure secure and scoped access.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: fe5b902e-beda-40fc-bf87-a3c4ab300e3a
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 12:56:58 +00:00
pac7
32a83013e5 Update email cancellation and location detection functions
Refactor Supabase function to use explicit JWT verification via auth.getUser, and enhance the location detection function with configurable geolocation API endpoints.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 364fb426-1d27-49b2-a244-a34e41c335e4
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 12:32:19 +00:00
pac7
0b57cba16f Improve security and error handling in backend functions
Update Supabase functions for cancel-email-change, detect-location, send-escalation-notification, and upload-image to enhance security and implement robust error handling.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a46bc7a0-bbf8-43ab-97c0-a58c66c2e365
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 12:06:35 +00:00
pac7
ccea99fecd Securely handle email change cancellations and improve Supabase function error handling
Update supabase/functions/cancel-email-change/index.ts to use secure base64 decoding for JWTs and enhance error handling for Supabase functions.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a46bc7a0-bbf8-43ab-97c0-a58c66c2e365
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 12:04:35 +00:00
pac7
6737431379 Improve error handling and navigation safety across the application
Add robust error handling for image uploads, improve navigation logic in AutocompleteSearch with toast notifications for missing identifiers, refine useIsMobile hook return type, and update Supabase function error reporting to handle non-Error types.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a759d451-40bf-440d-96f5-a19ad6af18a8
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-07 15:25:37 +00:00
gpt-engineer-app[bot]
882d06b70f Fix: Bypass Supabase Auth API issues in edge function 2025-10-01 16:22:20 +00:00
gpt-engineer-app[bot]
cc4da9f8ad Fix: Ensure authorization header is sent 2025-10-01 16:19:57 +00:00
gpt-engineer-app[bot]
11e6b2bf46 Fix edge function and force session refresh 2025-10-01 16:14:59 +00:00
gpt-engineer-app[bot]
50273ed620 Implement PostgreSQL function to cancel email change 2025-10-01 16:09:32 +00:00
gpt-engineer-app[bot]
9ab59e9025 Fix: Properly cancel email changes via direct DB manipulation 2025-10-01 16:03:04 +00:00
gpt-engineer-app[bot]
de284a4328 Fix edge function to clear new_email 2025-10-01 15:59:52 +00:00
gpt-engineer-app[bot]
13626922cc feat: Create edge function to cancel email changes 2025-10-01 15:57:30 +00:00