| 14 | export type TokenResponse<T> = { token: T, ttlMs: number }; |
| 15 | |
| 16 | export interface IdentityProvider<T> { |
| 17 | /** |
| 18 | * Request a token from the identity provider. |
| 19 | * @returns A promise that resolves to an object containing the token and the time-to-live in epoch milliseconds. |
| 20 | */ |
| 21 | requestToken(): Promise<TokenResponse<T>>; |
| 22 | } |
no outgoing calls
no test coverage detected