RocketBot icon indicating copy to clipboard operation
RocketBot copied to clipboard

Refreshtoken needed instead of Access Token (prevent crashing and re-login)

Open Powered87 opened this issue 10 years ago • 1 comments

Hi there,

Great work! But the bot is crashing every 30mins-1hour. I think the issue is that we need a refresh token instead of an access token, I tried messing around with the code without success.

The access token starts with "ya.29" instead of "1/" that the refresh token uses.

Powered87 avatar Jul 22 '16 07:07 Powered87

That's funny, I just did a pull request for this. you can fix it temp (or at least see if code if you want) by changing the lines in client.cs:

                Console.WriteLine($"Put RefreshToken in settings for direct login {tokenResponse.refresh_token}");
                accestoken = tokenResponse.refresh_token;

That should fix it for you.

HappyCamp avatar Jul 22 '16 07:07 HappyCamp