How to avoid authentication in the server

He will force the browser to open on the server, but the server does not have this browser, so it keeps getting errors

Hey,

You can use this method to authenticate without a browser session, its normally used for CI deployments.