index.js
function decode (string) {
  var body = Buffer.from(string, 'base64').toString('utf8')
  return JSON.parse(body)
}
function decode (string) {
  var body = Buffer.from(string, 'base64').toString('utf8')
  return JSON.parse(body)
}
function decode ( string ) { var body = Buffer . from ( string , 'base64' ) . toString ( 'utf8' ) return JSON . parse ( body ) }
Decode the base64 cookie value to an object.

@param {String} string
@return {Object}
@private
Decode the base64 cookie value to an object .