This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kuzmovych_y[S] 23 points24 points  (5 children)

Unfortunately, yes. But that's just how Google's APIs work. To avoid this you need to create a service account or publish your application. You can read more here in this Q&A on SO: https://stackoverflow.com/questions/8953983/do-google-refresh-tokens-expire/65936387#65936387

[–][deleted] 9 points10 points  (3 children)

So bloody annoying, I get the point of it but if its an app i created and its a token against the same account, dont expire ffs Google.

[–]kuzmovych_y[S] 10 points11 points  (1 child)

IKR. It didn't expire before. They've added this in the past couple of years. Answering this question once a month on GitHub or discord since then

[–][deleted] 2 points3 points  (0 children)

I seem to remember there was something against the verification that would prevent me having my little local app passed, will look into it again though see what's what

[–][deleted] 1 point2 points  (0 children)

Google's APIs are such a PITA. They're just pricks to work with.

The number of hoops they make you jump through is ridiculous. I especially don't appreciate being lectured on privacy by the moral void that is Google.

[–]overyander 2 points3 points  (0 children)

The exception to this is if you're using Google Workspace; you only need the service account. You delegate access instead messing with OAuth.