minus-development/MinusAPI — Issue #30: Minus API's access token response is invalid?
Author: kent013
Created: 2012-02-25 14:45:23+00:00
State: open

I don't know where is the right place to write this issue. Sorry if I writing some thing odd.

I am writing Minus API wrapper for iOS5, and I think there is an error in access token response.

When I request for access token to minus, the server response is like this

{"access_token": "brabra",
"token_type": "bearer",
"expire_in": 86400,
"refresh_token": "brabra",
"scope": "read_all upload_new"}

In this response, I think the key `expire_in` is missing trailing "s".
In the [IETF's spec](http://tools.ietf.org/html/draft-ietf-oauth-v2-21) at 4.1.4. Access Token Response,

expires_in
OPTIONAL. The lifetime in seconds of the access token. For
example, the value "3600" denotes that the access token will
expire in one hour from the time the response was generated.

I found this issue because when using a third party OAuth2 library, they will not parse this parameter.

Please close & ignore this issue if this a known issue. Thanks.