Messing about with cookies
This commit is contained in:
parent
ed0903528f
commit
f2c8bc3ae0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue