login uses hard redirect to clear errors caused by browser extensions #7
1 changed files with 1 additions and 1 deletions
|
|
@ -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) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue