feat: redirect user dynamically based on role instead of /protected after login
All checks were successful
Staging Build / build (push) Successful in 2m14s

This commit is contained in:
DanielS
2026-06-24 00:23:51 +02:00
parent 62e3c7804a
commit 615b0719f1
4 changed files with 11 additions and 7 deletions

View File

@@ -28,9 +28,11 @@ export async function signIn(email: string, password: string) {
// Andere aktive Sitzungen beenden
await supabase.auth.signOut({ scope: 'others' })
return { success: true, role: userData.role }
}
return { success: true }
return { success: true, role: 'partner' }
}
export async function signUp(email: string, password: string) {