mirror if funciton is passed instead of an object as auth options
0.0.1