fix: improve login flow by ensuring proper type handling for redirect and prevent loopback IP blocking in security checks

This commit is contained in:
2026-01-12 13:31:04 -03:00
parent 4551adf64f
commit a4b8dd3f77
2 changed files with 13 additions and 2 deletions

View File

@@ -69,6 +69,7 @@
}
const gpsPromise = coletarGPS();
const result = await authClient.signIn.email(
{ email: matricula.trim(), password: senha },
{
@@ -163,7 +164,7 @@
}
})();
await goto(resolve(redirectAfterLogin as string), { replaceState: true });
await goto(resolve(redirectAfterLogin as any) as any, { replaceState: true });
} else {
erroLogin = result.error?.message || 'Erro ao fazer login';
}