()
| 587 | |
| 588 | describe('OAuthManager.login', () => { |
| 589 | function okAuth(): DeviceAuthorization { |
| 590 | return { |
| 591 | userCode: 'WDJB-MJHT', |
| 592 | deviceCode: 'dev123', |
| 593 | verificationUri: 'https://auth/verify', |
| 594 | verificationUriComplete: 'https://auth/verify?user_code=WDJB-MJHT', |
| 595 | expiresIn: 600, |
| 596 | interval: 5, |
| 597 | }; |
| 598 | } |
| 599 | |
| 600 | it('drives device flow to success and persists token', async () => { |
| 601 | const storage = new InMemoryStorage(); |