gmail v0.0.2 Gmail.OAuth2.Client
Summary
Functions
Checks if an access token has expired
Gets the config for a Gmail API connection, including a refreshed access token
Refreshes an expired access token
Functions
Checks if an access token has expired
Examples
iex> Gmail.OAuth2.Client.access_token_expired?(%Gmail.OAuth2.Opts{expires_at: 1})
true
iex> Gmail.OAuth2.Client.access_token_expired?(%Gmail.OAuth2.Opts{expires_at: (Timex.Date.to_secs(Timex.Date.now) + 10)})
false