Firefox bug fix for auth.js