move 'NewClient' to function

instead of a method on the 'AuthOptions' type