fix authenticate factory method in dist/js/common-header.js