gmail.AuthorizedUser
An authorized user is a saved user consent.
Usage
gmail.AuthorizedUser(path)Epistole runs no consent flow and never rewrites the file. connect() ignores any access token the file holds and always requests one. So a refresh token that Google has expired or revoked raises AuthenticationError on connect().
Inside smtp.OAuth, it requests https://mail.google.com/, so the consent must include that scope.
Attributes
path: Path-
The JSON file that holds the refresh token, as
google.oauth2.credentials.Credentials.to_json()writes it. connect() reads it.