- [x] Decode the token. - [x] Save the expiration time. - [x] Retrieve the token again shortly before the expiration time. - [x] Shut down the scheduler right after completing authentication. - [x] Wait with other requests for a token if needed.