Skip to content

Commit

Permalink
fix expires_in
Browse files Browse the repository at this point in the history
  • Loading branch information
seasonstar committed Dec 11, 2015
1 parent 63c08fa commit 2ba2db8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion socialoauth/sites/qq_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def build_api_data(self, **kwargs):
def parse_token_response(self, res):
self.uid = res['userid']
self.access_token = res['access_token']
self.expires_in = None
self.expires_in = 0
self.refresh_token = None

_url = 'https://graph.qq.com/user/get_user_info'
Expand Down
2 changes: 1 addition & 1 deletion socialoauth/sites/weibo.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def build_api_data(self, **kwargs):
def parse_token_response(self, res):
self.uid = res['uid']
self.access_token = res['access_token']
self.expires_in = None
self.expires_in = res['expires_in']
self.refresh_token = None

res = self.api_call_get(
Expand Down
2 changes: 1 addition & 1 deletion socialoauth/sites/weibo_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def build_api_data(self, **kwargs):
def parse_token_response(self, res):
self.uid = res['userid']
self.access_token = res['access_token']
self.expires_in = None
self.expires_in = 0
self.refresh_token = None

res = self.api_call_get(
Expand Down

0 comments on commit 2ba2db8

Please sign in to comment.