✏️ Fix: [#72] github_token_save print 테스트
This commit is contained in:
@@ -115,6 +115,7 @@ class GithubTokenService:
|
||||
timeout=10,
|
||||
)
|
||||
resp.raise_for_status()
|
||||
print(resp.json())
|
||||
return resp.json()
|
||||
except requests.HTTPError as e:
|
||||
raise Exception(
|
||||
@@ -125,7 +126,7 @@ class GithubTokenService:
|
||||
return GithubToken.objects.update_or_create(
|
||||
user=user,
|
||||
defaults={
|
||||
"access_token": data["code"],
|
||||
"access_token": data["access_token"],
|
||||
"scope": data.get("scope", ""),
|
||||
"token_type": data.get("token_type", "bearer"),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user