How to use a credential json file without putting it in the project directory

Just making a guess, but, this line:

appears to me to be where the location for that settings file is specified. I’d try changing that to a different location to see if it reads the file from that location.