moved the auth method out of the Brokr client. Not part of brokr