瀏覽代碼

Fix refresh token behavior.

master
Ben Kurtovic 8 年之前
父節點
當前提交
676a9d357c
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      calefaction/eve/sso.py

+ 3
- 1
calefaction/eve/sso.py 查看文件

@@ -44,11 +44,13 @@ class SSOManager:
in a sensible way or looks to be down.
"""
url = "https://login.eveonline.com/oauth/token"
params = {"code": code}
params = {}
if refresh:
params["grant_type"] = "refresh_token"
params["code"] = code
else:
params["grant_type"] = "authorization_code"
params["refresh_token"] = code
self._debug("[POST] /oauth/token")

try:


Loading…
取消
儲存