Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Web API does not honor "expires_in" field when exchanging access code for access token

I am exchanging my access code for an access token with this response:

 

[My Exchange Response] --

Array ( [http] => Array ( [method] => POST [header] => Authorization: Basic <censored> Content-Type: application/x-www-form-urlencoded Content-Length: 186 [content] => clientId=<censored>&grant_type=authorization_code&redirect_uri=<censored>&code=<censored>&expires_in=10 ) ) 

 

Note: Mind you, this authentication workflow is working no problem for me; I am attempting to develop a way of exchanging refresh tokens for access tokens.

 

[Web API Response] --

Here is the response I get from the web API:

 

Array ( [access_token] => <censored> [expires_in] => 28800 [refresh_token] => <censored> [scope] => social sleep settings nutrition weight activity heartrate profile location [token_type] => Bearer [user_id] => <censored> )

 

[ASK] --

Can somebody from the development team please explain why I only get the default time?

 

Thanks!

Best Answer
0 Votes
0 REPLIES 0