We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a4c596 commit 40c11b4Copy full SHA for 40c11b4
composables/useAuth.ts
@@ -71,7 +71,7 @@ export async function registerWithEmail(
71
72
if (data) {
73
useState('user').value = data
74
- await useRouter().push('/dashboard')
+ await useRouter().push('/topics')
75
}
76
} catch (e) {
77
console.log('error: ' + e.toString())
@@ -84,7 +84,7 @@ export async function loginWithEmail(usernameOrEmail: string, password: string):
84
const user = await $fetch<IUser>('/api/auth/login', { method: 'POST', body: { usernameOrEmail: usernameOrEmail, password: password } })
85
console.log(user)
86
useState('user').value = user
87
88
return true
89
} catch(e) {
90
return false
0 commit comments