GOOGLE_CLIENT_ID, 'redirect_uri' => GOOGLE_REDIRECT_URI, 'response_type' => 'code', 'scope' => 'openid email profile', 'access_type' => 'online', 'state' => $state, ]; header('Location: https://accounts.google.com/o/oauth2/v2/auth?' . http_build_query($params)); exit;