We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5545ad8 commit c395f0dCopy full SHA for c395f0d
1 file changed
designsafe/apps/auth/models.py
@@ -96,12 +96,13 @@ def update(self, **kwargs):
96
97
def refresh_tokens(self):
98
"""Refresh and update Tapis OAuth Tokens"""
99
- self.client.refresh_tokens()
+ client = self.client
100
+ client.refresh_tokens()
101
self.update(
102
created=int(time.time()),
- access_token=self.client.access_token.access_token,
103
- refresh_token=self.client.refresh_token.refresh_token,
104
- expires_in=self.client.access_token.expires_in().total_seconds(),
+ access_token=client.access_token.access_token,
+ refresh_token=client.refresh_token.refresh_token,
105
+ expires_in=client.access_token.expires_in().total_seconds(),
106
)
107
108
def __str__(self):
0 commit comments