()
| 787 | }; |
| 788 | let n = 0; |
| 789 | const pollImpl = async (): Promise<DevicePollResult> => { |
| 790 | n += 1; |
| 791 | if (n === 1) return { kind: 'pending', errorCode: 'authorization_pending', description: '' }; |
| 792 | if (n === 2) return { kind: 'pending', errorCode: 'slow_down', description: '' }; |
| 793 | if (n === 3) return { kind: 'pending', errorCode: 'slow_down', description: '' }; |
| 794 | return { kind: 'success', token: makeToken() }; |
| 795 | }; |
| 796 | const mgr = new OAuthManager({ |
| 797 | config, |
| 798 | storage, |
nothing calls this directly
no test coverage detected