diff --git a/fhirclient/auth.py b/fhirclient/auth.py index 0127ff98..94c82d3a 100644 --- a/fhirclient/auth.py +++ b/fhirclient/auth.py @@ -283,7 +283,7 @@ def _request_access_token(self, server, params): del ret_params['access_token'] if 'expires_in' in ret_params: - expires_in = ret_params.get('expires_in') + expires_in = int(ret_params['expires_in']) self.expires_at = datetime.now() + timedelta(seconds=expires_in) del ret_params['expires_in']