code: function sessionDecorator() {
      // save token header to be used in cookieParserDecorator middleware.
      tokenHeaderName = rs.keystone.get('resty token header');
  
      rs.keystone.session = RestySession.factory(rs.keystone);
      rs.keystone.set('session', rs.keystone.session.persist);
  }
docs: Replaces keystone session API with a proxy to handle authentication different the cookie auth.
  @param keystone