jeremyephron / simplegmail

A simple Gmail API client for applications in Python
MIT License
348 stars 74 forks source link

Add access_type 'offline' to receive the refresh token #54

Closed ant31 closed 1 year ago

ant31 commented 2 years ago

Google returns a refresh token only if the access_type is set as 'offline'.

I've made it the default behavior but can change it.