Merge pull request 'login uses hard redirect to clear errors caused by browser extensions' (#7) from fix-login-error into main
Reviewed-on: tiradoe/movie-night-web-nuxt#7
This commit is contained in:
commit
cab29c8c56
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ export const useAuth = () => {
|
|||
credentials: 'include',
|
||||
})
|
||||
await $api('/api/login', {method: 'POST', body: {email, password}})
|
||||
await navigateTo('/lists')
|
||||
window.location.href = '/lists'
|
||||
}
|
||||
|
||||
const register = async (email: string, username: string) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue