fix: next auth host not trusted (#144)

This commit is contained in:
Meier Lukas
2024-02-23 17:15:24 +01:00
committed by GitHub
parent cfb3daef95
commit b2cee8f693
3 changed files with 15 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ export const LoginForm = () => {
callbackUrl: "/",
})
.then((response) => {
if (!response?.ok) {
if (!response?.ok || response.error) {
throw response?.error;
}