login uses hard redirect to clear errors caused by browser extensions

This commit is contained in:
Edward Tirado Jr 2026-04-08 22:37:38 -05:00
parent e16b4c146b
commit 2e4e05c6d2

View file

@ -7,7 +7,7 @@ export const useAuth = () => {
credentials: 'include', credentials: 'include',
}) })
await $api('/api/login', {method: 'POST', body: {email, password}}) await $api('/api/login', {method: 'POST', body: {email, password}})
await navigateTo('/lists') window.location.href = '/lists'
} }
const register = async (email: string, username: string) => { const register = async (email: string, username: string) => {