Standard device code response from GitHub.
(overrides?: Record<string, unknown>)
| 21 | |
| 22 | /** Standard device code response from GitHub. */ |
| 23 | function deviceCodeResponse(overrides?: Record<string, unknown>): Response { |
| 24 | return jsonResponse({ |
| 25 | verification_uri: "https://github.com/login/device", |
| 26 | user_code: "ABCD-1234", |
| 27 | device_code: "dc_test_123", |
| 28 | interval: 0, |
| 29 | ...overrides, |
| 30 | }); |
| 31 | } |
| 32 | |
| 33 | /** Token success response. */ |
| 34 | function tokenSuccessResponse(token = "ghp_test_token"): Response { |
no test coverage detected