Skip to content

Commit

Permalink
forget ()
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiroUsagi-san committed Oct 13, 2023
1 parent 4722648 commit 72bf479
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions insalan/payment/tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def __init__(self):
},
)
logger.debug(request.text)
self.bearer_token = request.json["access_token"]
self.refresh_token = request.json["refresh_token"]
self.bearer_token = request.json()["access_token"]
self.refresh_token = request.json()["refresh_token"]

def get_token(self):
return self.bearer_token
Expand All @@ -35,5 +35,5 @@ def refresh(self):
'grant_type': "refresh_token",
},
)
self.bearer_token=request.json["access_token"]
self.refresh_token=request.json["refresh_token"]
self.bearer_token=request.json()["access_token"]
self.refresh_token=request.json()["refresh_token"]

0 comments on commit 72bf479

Please sign in to comment.