middleware/mw.auth.cookie.js
function getJwtFromCookie(req, reply) {
        var jwt = req.state && req.state.jwt;
        if (jwt) {
            req.headers = req.headers || {};
            req.headers.authorization = jwt;
        }

        reply.continue();
    }
function getJwtFromCookie(req, reply) {
        var jwt = req.state && req.state.jwt;
        if (jwt) {
            req.headers = req.headers || {};
            req.headers.authorization = jwt;
        }

        reply.continue();
    }
function getJwtFromCookie ( req , reply ) { var jwt = req . state && req . state . jwt ; if ( jwt ) { req . headers = req . headers || { } ; req . headers . authorization = jwt ; } reply . continue ( ) ; }
Get the JWT token from the cookie and stick it into the request
@param req
@param reply
Get the JWT token from the cookie and stick it into the request