Reading gmails with OAuth

Wasted a day today :wink: and not getting anywhere

Trying to read a gmail account, with OAuth2 security.

I can return an ‘access_token’, but no refresh_token. If anyone has any working examples they’re prepared to share, that would be greatly appreciated. Either client side or server side in php are fine.

Cheers
Graham