Re: KeyError: 'refresh_token' error in fetchmail-oauth2

Kamil Jońca <[email protected]> Sat, 02 Apr 2022 14:48:51 +0200
Newsgroups gmane.mail.fetchmail.user
Message-ID <[email protected]>
Marco Gaiarin <[email protected]> writes:

> Mandi! Kamil Jo??ca
>   In chel di` si favelave...
>
>>> Someone have some clue?! Thanks.
>> Please paste your .oauth2.conf file
>> ... with client_id and client_secret mangled ...
>
>  irene@eraldo:~$ cat .oauth2.conf
>  client_id=<reducted>
>  client_secret=<reducted>
>  refresh_token_file=/home/irene/.oauth2.refresh
>  access_token_file=/home/irene/.oauth2.access
>  max_age_sec=1900
Have you tried add

--8<---------------cut here---------------start------------->8---
scope=https://mail.google.com/ https://www.googleapis.com/auth/carddav https://www.googleapis.com/auth/calendar
auth_url=https://accounts.google.com/o/oauth2/auth
token_url=https://www.googleapis.com/oauth2/v3/token
redirect_uri=urn:ietf:wg:oauth:2.0:oob
--8<---------------cut here---------------end--------------->8---

to config?
KJ

-- 
http://wolnelektury.pl/wesprzyj/teraz/