* IdentityProvider that returns a fixed test token for testing and doesn't handle TTL.
| 18 | * IdentityProvider that returns a fixed test token for testing and doesn't handle TTL. |
| 19 | */ |
| 20 | class TestIdentityProvider implements IdentityProvider<string> { |
| 21 | requestToken(): Promise<TokenResponse<string>> { |
| 22 | return Promise.resolve({ token: 'test-token 1', ttlMs: 1000 }); |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Helper function to create a test token with a given TTL . |
nothing calls this directly
no outgoing calls
no test coverage detected