Commit 456e60f
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
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
0 commit comments