RocketBot
RocketBot copied to clipboard
Refreshtoken needed instead of Access Token (prevent crashing and re-login)
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.
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.