Fix auth API for FireFox