Skip to content

v2.3.0

Compare
Choose a tag to compare
@narenranjit narenranjit released this 18 Aug 17:54
· 470 commits to master since this release

Features:

The sessionKey parameter of the RunManager can now optionally be provided a function instead of a string.

This is useful if you want to optionally skip setting/over-writing a cookie based on an external flag. For instance, maybe you'd rather not save a cookie while impersonating another user:

new F.manager.RunManager({
    sessionKey: function() {
        var session = window.getSession();
        return (session.isImpersonating) ? false : 'epicenterjs.session';
    }
});
Current session information now includes the userName of the currently logged in user.
var am = new F.manager.AuthManager();
var session = am.getCurrentUserSessionInfo();
console.log(session.userName)