I have a Google account connected to my Ubuntu account for various purposes. I recently noticed that my Gnome calendar was not in sync, which it turned out had happened because my Google certificate had expired. This comment claims that these expire yearly, with varying periods for other account types, so reentering credentials is a periodic task for most online account types.
It's surprising that I was left to discover this manually and not notified in some obvious and persistent way, e.g. the way I might be informed of available software updates. Is there a way to enable such a notification, ideally from the command line so I can put it in my install script? If not, is there perhaps a way to query certificate expiry and e.g. invoke notify-send in a login script?
If it makes a difference, I'm on 22.04.