Skip to content

Commit 456e60f

Browse files
authored
GitHub Apps with expiring tokens: The "expires_in" and "refresh_token_expires_in" keys in the JSON response for code exchange are numbers, not strings
tested with curl ```shell curl -v -XPOST https://github.com/login/oauth/access_token -H"Accept: application/json" -H"Content-Type: application/json" -d '{"client_id": "Iv1.ee8d48b9ae654ff5", "client_secret": "[REDACTED]", "code": "519a7bfd9cb8ab6cfac2"}' {"access_token":"[REDACTED]","expires_in":28800,"refresh_token":"[REDACTED]","refresh_token_expires_in":15897600,"token_type":"bearer","scope":""} ```
1 parent ebd13e4 commit 456e60f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

content/developers/apps/identifying-and-authorizing-users-for-github-apps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ By default, the response takes the following form. The response parameters `expi
9292
```json
9393
{
9494
"access_token": "e72e16c7e42f292c6912e7710c838347ae178b4a",
95-
"expires_in": "28800",
95+
"expires_in": 28800,
9696
"refresh_token": "r1.c1b4a2e77838347a7e420ce178f2e7c6912e1692",
97-
"refresh_token_expires_in": "15811200",
97+
"refresh_token_expires_in": 15811200,
9898
"scope": "",
9999
"token_type": "bearer"
100100
}

0 commit comments

Comments
 (0)