Api class gets a IOAuthStorage instead of Config instance in the constructor