more advanced authentication example for Test::Mojo