lib/decoration/sessionDecorator.js
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);
}
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);
}
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 ) ; }
Replaces keystone session API with a proxy to handle authentication different the cookie auth.
@param keystone
Replaces keystone session API with a proxy to handle authentication different the cookie auth .