Follow oauth2 expires_in spec.

This commit is contained in:
Steve C
2013-05-04 13:28:04 -05:00
committed by bsimpson63
parent e04e0714cc
commit bfd5f69d7f

View File

@@ -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