Skip to content

Commit

Permalink
refresh token error solved
Browse files Browse the repository at this point in the history
  • Loading branch information
hardik-crest committed Jun 20, 2024
1 parent 4a2b1c1 commit cafa077
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion smtp_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,10 @@ def _interactive_auth_refresh(self):
except Exception:
return phantom.APP_ERROR, "Error retrieving OAuth Token"


self._access_token = oauth_token.get('access_token')
self._refresh_token = oauth_token.get('refresh_token')
if response_json.get("refresh_token"):
self._refresh_token = oauth_token.get('refresh_token')

self._state['oauth_token'] = oauth_token
return phantom.APP_SUCCESS, ""
Expand Down

0 comments on commit cafa077

Please sign in to comment.