You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If an OAuth2 authorization code is present in the URL, exchange it for
// an access token.
$oauth->setCode($_GET['code']);
$oauth->fetchAuthToken();
// Persist the acquired access token in a session.
$_SESSION['access_token'] = $oauth->getAccessToken();
// Refresh the current page.
$redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . '/';
header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL));
Any suggestion?
The text was updated successfully, but these errors were encountered:
If you use the AuthTokenMiddleware, which you can see an example in the README, you will not need to handle manually refreshing the token, as it will happen automatically with the middleware.
I used the steps from this page to get the access token. Now I have the access token and refresh token.
How can you refresh the access_token using the refresh token?
googleapis/php-analytics-data@175f05d#top
Any suggestion?
The text was updated successfully, but these errors were encountered: