浏览代码

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:


正在加载...
取消
保存