Revert "Add secure: true"

This reverts commit 1f42a0f661.
This commit is contained in:
Pranav Raj S 2021-10-04 22:35:02 +05:30
parent 965a8ba3a9
commit 65b057d67c

View file

@ -24,8 +24,7 @@ export const setUser = (user, expiryDate, options = {}) => {
}
Cookies.set('user', user, {
expires: differenceInDays(expiryDate, new Date()),
sameSite: 'None',
secure: true,
sameSite: 'Lax',
});
};
@ -36,8 +35,7 @@ export const setAuthCredentials = response => {
const expiryDate = getHeaderExpiry(response);
Cookies.set('auth_data', response.headers, {
expires: differenceInDays(expiryDate, new Date()),
sameSite: 'None',
secure: true,
sameSite: 'Lax',
});
setUser(response.data.data, expiryDate);
};