1
0
Fork 0

Messing about with cookies

This commit is contained in:
Amarpreet Minhas 2019-09-28 08:34:15 -04:00
parent ed0903528f
commit f2c8bc3ae0

View file

@ -19,12 +19,12 @@ export default (state = initialState, action) => {
cookies.set("jwt.signature", jwt_signature,
{
path: '/',
httpOnly: true
})
cookies.set("jwt.header_payload", jwt_header_payload,
{
path: '/',
})
cookies.getAll()
return {...state, ...{
username: action.payload.data.username,
user_logged_in: true