gmail v0.1.20 Gmail.OAuth2
OAuth2 access token handling.
Link to this section Summary
Functions
Checks if an access token has expired
Link to this section Functions
Checks if an access token has expired.
Examples
iex> Gmail.OAuth2.access_token_expired?(%{expires_at: 1})
true
iex> Gmail.OAuth2.access_token_expired?(%{expires_at: (DateTime.to_unix(DateTime.utc_now) + 10)})
false
Link to this function
refresh_access_token(refresh_token)