export interface TokenProvider { getToken(): Promise; } export class StaticTokenProvider implements TokenProvider { constructor(private readonly cachedToken: string) {} async getToken(): Promise { return this.cachedToken; } }