I would prefer this notation for checking numbers:
`if (options.auth === +options.auth)`

because `typeof NaN === 'number';` :)