Fix edge function and force session refresh

This commit is contained in:
gpt-engineer-app[bot]
2025-10-01 16:14:59 +00:00
parent 50273ed620
commit 11e6b2bf46
2 changed files with 7 additions and 14 deletions

View File

@@ -159,6 +159,9 @@ export function AccountProfileTab() {
throw new Error(data?.error || 'Failed to cancel email change');
}
// Force refresh the session to get updated user state
await supabase.auth.refreshSession();
// Update Novu subscriber back to current email
if (notificationService.isEnabled()) {
await notificationService.updateSubscriber({