Opower BG&E re-authentication

Caveat emptor: if you know how to re-authenticate without deleting, please let me know. Otherwise this works for me. your mileage likely will vary.

BG&E uses email with six digit code for authentication.

At initial setup, the opower will ask for this six digit security token.
The email will be something like:

subject: Here is your six-digit verification code
from: [email protected]
to: <email of your BG&E account setup>
Here’s your six-digit verification code: 123456

This code will only be active for 20 minutes. If you are unable to enter this code within this time, please request another code.

This will work for some time, collecting data properly, but opower access will time out after a while.

I could not find a simple way to re-authenticate as far as I know. If you do, please inform us.

I simply delete the PG&E service from the Opower integration, then re-create the service without any changes. For me, this does not delete historical data, and just continues chugging along.

I am trying to figure out what is the timeout, and a periodic re-authentication, scrape the email account for the token, and re-authN of Opower.