middleware/mw.auth.cookie.js
function registerJwtCookie(server) {
        server.state('jwt', {
            ttl:        cookieConfig.ttl,
            domain:     cookieConfig.domain,
            isSecure:   cookieConfig.isSecure,
            path:       '/'
        });
    }
function registerJwtCookie(server) {
        server.state('jwt', {
            ttl:        cookieConfig.ttl,
            domain:     cookieConfig.domain,
            isSecure:   cookieConfig.isSecure,
            path:       '/'
        });
    }
function registerJwtCookie ( server ) { server . state ( 'jwt' , { ttl : cookieConfig . ttl , domain : cookieConfig . domain , isSecure : cookieConfig . isSecure , path : '/' } ) ; }
Register the cookie used for the JSON web token.
This is only used on the webserver since the API
will get the token in the header of the request.

@param server
Register the cookie used for the JSON web token . This is only used on the webserver since the API will get the token in the header of the request .