[api2] Bug fix for import auth