Abstract the auth method.