Google Oauth: Error in retrieving token

Hello, I’m trying to set-up my [dockerized] Dolibarr (18.0.1) with Google OAuth. I set up both Dolibarr and Google OAuth Client according to documentation. After clicking “Login with Google” I pick my google account and the last message I get is Error in retrieving token: "invalid_client" on the white background with no further indication. I tried troubleshooting this error, I waited for the OAuth Client to settle for a few hours, I checked packets with Burp, I also added new client and after it too failed let it settle down before trying again. Dolibarr logs also don’t mention anything useful. Has someone encountered such problem?

I found a “solution”(???) for my problem. Seems that right now using dolibarr docker image with tag “develop” is the only way to fix the problem, with that Google oauth works properly.