don't join credentials as they are not set in cors in go
This commit is contained in:
parent
79743f33cb
commit
f04f0ce57d
|
@ -38,7 +38,9 @@ export const actions = {
|
|||
|
||||
throw redirect(301,'/profile');
|
||||
} 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();
|
||||
|
|
Loading…
Reference in New Issue