fixing api credentials configuration