VCL Cloud Pack, Google Drive RefreshAccess

Hi,


one question. In my product I let save the PersistTokens in plIniFile.
After the authentication the component saves the information in my ini file.
But there will be only save ACCESS_TOKEN and AUTH_TOKEN.

ACCESS_TOKEN_SECRET, AUTH_TOKEN_SECRET, EXTRA-DATA and REFRESH_TOKEN are empty all the time.

But the problem is I can never refresh the access. The function RefreshAccess every time returns false, because the Token_Refresh = ''.

And this runs my software in trouble, because if the AccessTokenLifeTime is 0 the software can not refresh access....

When the REFRESH_TOKEN will be set?


Hi,


I have not been able to reproduce this issue;
By default the Google Drive API should provide a refresh token together with the access token during authentication.

Does the issue also occur with the CloudStorageDemo (included product download)?

Can you please provide a log file so I can further investigate this issue?
Logging can be enabled by setting Logging to true and LogLevel to llDetail. The log file is automatically generated in your machine's documents folder.
Files can be emailed to mailto:help@tmssoftware.com

Yes,


this issue appears also in TMSCloudPackDemo from TMS Cloud Pack.
The file DTOKENS.INI has only values for ACCESS_TOKEN and AUTH_TOKEN

Please try it out.
I will send to you the log file.

The Google tokens are persisted in GTOKENS.INI

Did you check this file?
Here it contains the refresh token too.