Auth.prototype.onAuth improved