It has been solved by trying different network connections until the authorization success.

I am not sure if the old network was just flakey but this solved itself server side or by getting a better network connection.