-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refresh tokens is broken #19
Comments
I was diving into this piece and as far as I see, I did a wrong implementation of this. The method refreshToken will call We should actually call method |
As @Rarst just showed me, this means we're doing a request to Google on every page load in the admin... We should fix this and release it ASAP. |
@jdevalk I've fixed it for the GSC-client. I will fix this for the analytics client also. Probably I can take some of this into one file (like a yoast-api-client) for both clients. |
Fix continuously obtaining of the refresh tokens
Yup, every. single. page. And I've just had it delay loading a page by 7.9 seconds 👎 |
We know. But I want to make sure it's 100% tested before we release it.
|
Yoast_Google_Analytics_Client->refresh_tokens()
attempts to get response via$response = $this->refreshToken( $refresh_token );
, which is void return method.I am not confident in what should this be adjusted to?
Likely cause for recurrent HTTP requests, see awesomemotive/google-analytics-for-wordpress#261
The text was updated successfully, but these errors were encountered: