Revamp API so applications using GOA (like Geary and Calendar) can differentiate between expired credentials vs some other kind of unknown login failure
Please revamp the API so applications using gnome online accounts like geary can differentiate between some other kind of unknown login failure and expired credentials. I just had a situation where I spent some days trying to figure out why I was getting a very vague "GaoError 4" in geary after a distribution upgrade that prevented me from getting e-mails, and turns out the gmail oauth2 credentials had expired but I only found that out by chance looking into Settings > Online Accounts. (If I just want to check my e-mail and I get some generic error that sounds like a connection issue, it just doesn't seem like the first place I would think to check. Especially given "GaoError 4" sounds so cryptic and technical, and I was even offered a "Retry" button like that would help.)
This confusion could have been avoided if geary had showed a clear credentials expired notice with a button taking me to gnome online accounts to fix it. I was told however it can't do that since it doesn't get that error detail, so this is why I'm making this issue. I think the application should be enabled to have this credentials expired vs other unknown issue differentiation so that it can send me off to do the right thing rather than just offer a useless retry button (useless in this particular scenario).
I think this would remove a lot of confusion users can possibly run into whenever this credentials expiring thing happens.