From 72bf47963d348298d3b521b68c46185be4d0e833 Mon Sep 17 00:00:00 2001 From: Mahal Date: Fri, 13 Oct 2023 23:42:45 +0200 Subject: [PATCH] forget () --- insalan/payment/tokens.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/insalan/payment/tokens.py b/insalan/payment/tokens.py index e2fcf818..bc85a34a 100644 --- a/insalan/payment/tokens.py +++ b/insalan/payment/tokens.py @@ -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 @@ -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"]