Access and refresh token are stored in a file + expiry time of access token.
Every 45 minutes tokens are refreshed using the refresh token. The refreshed tokens and new expiry time are stored to file (see point 1). If access token is updated then updated access token is stored. node.photos is deleted and reinitialized using new access token
If the application is running more than 1 hour then the authentication expires and the application is not automatically refreshing it.
The following message is seen: