Which works great except for when the initial access token expires? It lasts for one hour and then after that time, it stops working and when I run a test it says no refresh token available? I have all the settings exactly the same as in the manual e.g. global permanent token etc. but I am having to manually refresh the token each time after it has run out to make things work again.
Any ideas? I have the locks when it initially sets the initial token and like I said it all works fine up until the expiry time passed.
Delete the access to my Squiz Matrix site, and then re-authenticate the token.
You can do that by viewing the URL of the Token in a browser, like you did when you first would have gone to make a request for authentication to Google, but add ?force=true a the end of it.
The tutorial doesn’t mention the extra query string parameter, but the extra query string is important if you have to **RE-**authenticate (eg. revoke and re-authorise) - normally Google would not provide an additional consent screen for this, but Google also won’t provide a refresh token unless you see a consent screen.
This consent screen should simply ask you for “offline access” because you already have the correct scopes authorised on that account.
I’m looking to get the tutorial updated with this; the rest of it looks fine to me though.