auth_token AuthToken ¶ AuthToken() Class for handling OAuth 2 Token logic. BUFFER_IN_SECONDS class-attribute instance-attribute ¶ BUFFER_IN_SECONDS = 60 access_token instance-attribute ¶ access_token = None expires_at instance-attribute ¶ expires_at = now() update_token ¶ update_token(access_token, expires_in) Replaces the access token with the new one and sets the new expiration time. is_expired ¶ is_expired() Returns whether the token is expired.