It’s an issue which has been already reported, like here Non-interactive authentication
anyway, @stefaan.lippens wrote this nice explanation in the Python Client docs about this scenario:
https://open-eo.github.io/openeo-python-client/auth.html#authentication-for-long-running-applications-and-non-interactive-contexts