implementado login a travez de coockies
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
export let component;
|
||||
|
||||
let redirect = window.location.pathname;
|
||||
const token = localStorage.getItem('token');
|
||||
|
||||
const email = localStorage.getItem('email');
|
||||
|
||||
const handleAccess = async () => {
|
||||
@@ -20,7 +20,8 @@
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify( {email, token, redirect} ),
|
||||
body: JSON.stringify( {email, redirect} ),
|
||||
credentials: "include"
|
||||
});
|
||||
|
||||
if (response.ok) {
|
||||
|
||||
Reference in New Issue
Block a user