added choice of api method on Auth class