## gmail.AuthorizedUser


An authorized user is a saved user consent.


Usage

``` python
gmail.AuthorizedUser(path)
```


Epistole runs no consent flow and never rewrites the file. [connect()](Backend.md#epistole.Backend.connect) ignores any access token the file holds and always requests one. So a refresh token that Google has expired or revoked raises [AuthenticationError](exceptions.AuthenticationError.md#epistole.exceptions.AuthenticationError) on [connect()](Backend.md#epistole.Backend.connect).

Inside [smtp.OAuth](smtp.OAuth.md#epistole.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()](Backend.md#epistole.Backend.connect) reads it.
