Authentication with private repositories

Hi there! The script works perfectly fine with public docker repositories but what about private ones? I always get this error: Error during API request occurred: authentication required