From 556a733ec454d72d15c44965d139aacec398799c Mon Sep 17 00:00:00 2001 From: Julien Eberle Date: Tue, 4 Oct 2016 16:38:18 +0200 Subject: [PATCH] using directly the refresh function from sanction --- gsn/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsn/__init__.py b/gsn/__init__.py index 3ece805..08910dc 100644 --- a/gsn/__init__.py +++ b/gsn/__init__.py @@ -38,7 +38,7 @@ def refresh_token(self): """ assert hasattr(self.client, 'refresh_token') - self.client.request_token(grant_type='refresh_token') + self.client.refresh() self.expiration = time.time() + self.client.expires_in