mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
Follow oauth2 expires_in spec.
This commit is contained in:
@@ -218,7 +218,7 @@ class OAuth2AccessController(MinimalController):
|
||||
if access_token:
|
||||
resp["access_token"] = access_token._id
|
||||
resp["token_type"] = access_token.token_type
|
||||
resp["expires_in"] = access_token._ttl
|
||||
resp["expires_in"] = int(access_token._ttl) if access_token._ttl else None
|
||||
resp["scope"] = access_token.scope
|
||||
if refresh_token:
|
||||
resp["refresh_token"] = refresh_token._id
|
||||
|
||||
Reference in New Issue
Block a user