refactor: update to nuxt-graphql 0.5.x

This commit is contained in:
2026-01-20 10:09:44 -05:00
parent 684e2fa1e9
commit e383255e73
14 changed files with 973 additions and 2113 deletions

View File

@@ -28,7 +28,7 @@ export function useAuthConnexion() {
async function login({ data: variables }: FormSubmitEvent<AuthLoginForm>, redirect?: string) {
try {
const { data } = await loginMutate(variables);
if (!data.login) {
if (!data?.login) {
throw new Error(`Échec de la connexion par mot de passe.`);
}
await redirectTo(redirect);