Skip to content

Commit df78086

Browse files
authored
Update refresh.py
1 parent b40af16 commit df78086

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apyauth/oauth20/refresh.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import requests
33
import json
44
import os
5-
import oauth2py.oauthEndpoints
5+
import apyauth.oauth20.oauthEndpoints.oauthEndpoints
66

7-
class refreshTkn(oauth2py.oauthEndpoints.defEndpoints):
7+
class refreshTkn(apyauth.oauth20.oauthEndpoints.defEndpoints):
88
"""
99
This class can be used to refresh an access Token.
1010
@@ -19,7 +19,7 @@ def __init__(self,app,clientid,clientsecret):
1919
self.clientId = clientid
2020
self.clientSecret = clientsecret
2121
self.app = app
22-
oauth2py.oauthEndpoints.defEndpoints.__init__(self)
22+
apyauth.oauth20.oauthEndpoints.defEndpoints.__init__(self)
2323

2424
def refreshToken(self):
2525
"""
@@ -56,4 +56,4 @@ def newToken(self,refreshToken):
5656
tokenReq = requests.post(self.endpoints['refresh'], data = data, headers = headers)
5757
token = json.loads(tokenReq.content)['access_token']
5858
self.tokenReq = tokenReq
59-
return token
59+
return token

0 commit comments

Comments
 (0)