warpas / juggernaut-project

A simple Ruby script to export time logged through Toggl to Google Calendar
5 stars 1 forks source link

Authorization Tokens do not refresh automatically when they time out #11

Closed TrueZortal closed 1 year ago

TrueZortal commented 1 year ago

Once refresh token times out the scripts stop working.

Current behaviour: Script fails with

Authorization failed. Server message: (Signet::AuthorizationError) { "error": "invalid_grant", "error_description": "Token has been expired or revoked." }

when refresh tokens time out.

Intended behaviour: re-authorization is requested automatically once tokens time out Workaround: Delete token.secret.yaml to force new token generation