feat(frontend): Use betterAuth implementation from nuxthub-better-auth project

This commit is contained in:
2025-04-20 09:54:16 +02:00
parent 4e7a962a06
commit eec15dd7ef
17 changed files with 209 additions and 66 deletions

View File

@@ -30,6 +30,7 @@ definePageMeta({ layout: 'auth' })
useSeoMeta({ title: 'Login' })
const toast = useToast()
const { signIn } = useAuth()
const fields = [
{
@@ -81,7 +82,7 @@ function onSubmit(payload: FormSubmitEvent<Schema>) {
alert('Bitte alle Felder ausfüllen')
return
}
authClient.signIn.email(
signIn.email(
{
email: payload.data.email,
password: payload.data.password