This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-31 00:11:04 -04:00
1 parent 9a669197c8
commit 84d0940da1
6 files changed
+39 -8

No files matched your search

@@ -1,7 +1,7 @@
<script lang="ts">
import { getContext } from 'svelte';
import { toast } from 'svelte-sonner';
import { updateUserPassword, userSignOut } from '$lib/apis/auths';
import { getLogoutRedirectUrl, updateUserPassword, userSignOut } from '$lib/apis/auths';
import SensitiveInput from '$lib/components/common/SensitiveInput.svelte';
const i18n = getContext('i18n');
@@ -32,7 +32,7 @@
});
localStorage.removeItem('token');
location.href = signOutRes?.redirect_url ?? '/auth?logout=true';
location.href = getLogoutRedirectUrl(signOutRes?.redirect_url);
}
currentPassword = '';