I've been playing around with HTTP Auth and OAuth 2.0 in Tasker to add a row in Google Sheets (using
the example) and to create a calendar event in Google Calendar.
I've got it all to work but yesterday evening a task ran which, amongst other things, adds a row in Google Sheets and creates a calendar event in Google Calendar. Some time later when I opened up Google Chrome, I found two tabs opening asking me to re-consent my OAuth app for access to Google Sheets and access to Google Calendar. In the meantime the task had completed without being able to add a row to Google Sheets or create a calendar event in Google Calendar so I lost the data those should have contained.
Reading through Google's documentation, it asked me to re-consent my OAuth app because as its publishing status is 'testing' the consent expires every 7 days. I'm wondering if either I can avoid a repeat of this situation using AutoWeb and AutoWeb Authentication because I'm then using Joao's OAuth app (but then I'm not sure how to use the %awaccesstoken and %awaccesstokenheaderprefix variables in place of the %http_auth_headers variable HTTP Auth produces) or if it's possible to set the task to wait until the OAuth app has been re-consented and it's been supplied with the %http_auth_headers?
Suggestions welcome!