Same interface as the original cli-auth.