don't join credentials as they are not set in cors in go

This commit is contained in:
ed barz 2023-06-01 11:30:14 +02:00
parent 79743f33cb
commit f04f0ce57d
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ export const actions = {
throw redirect(301,'/profile'); throw redirect(301,'/profile');
} else { } else {
throw redirect(301,'/login'); const error = await res.json();
const encodedMessage = encodeURIComponent(error.error);
throw redirect(301,'/login?error='+ encodedMessage);
} }
/* /*
const error = await res.json(); const error = await res.json();