This commit is contained in:
Timothy Jaeryang Baek
2026-08-31 00:11:04 -04:00
parent 9a669197c8
commit 84d0940da1
6 changed files with 39 additions and 8 deletions
@@ -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 = '';