Commit 2ef80a35 authored by Luis Fernando Alvarez D's avatar Luis Fernando Alvarez D Committed by Tim Neutkens

Fixed error with the cookie parser in with-apollo-auth (#4445)

Fixes #4442
parent 54e152b1
...@@ -8,9 +8,7 @@ import initApollo from './initApollo' ...@@ -8,9 +8,7 @@ import initApollo from './initApollo'
function parseCookies(req, options = {}) { function parseCookies(req, options = {}) {
return cookie.parse( return cookie.parse(
req && req.headers.cookie req ? req.headers.cookie || '' : document.cookie,
? req.headers.cookie
: document.cookie,
options options
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment