Why is an authentication file accepted in the config file and not on the command line?
Solution 1:
You have to change position of parameters, --auth-user-pass should be passed after --config parameter like this:
sudo openvpn --config "$HOME/your_file.ovpn" --auth-user-pass "$HOME/auth.txt"