Google login as client-suggested identity provider

I’m trying to add google login to my app bypassing the keycloak login page.
We are using the “/realms/{realm-name}/protocol/openid-connect/token” endpoint to directly obtain the access and refresh token.

I make a get request to “/keycloak/auth/realms//protocol/openid-connect/auth?client_id=&redirect_uri=&response_type=code&scope=openid&kc_idp_hint=google”

However, I don’t get the access token in the response after signing in through google. Any advice?