import { CredentialsProvider } from "./credentialsProvider" ; import { Credentials } from "../interceptor" ; export class SimpleCredentialsProvider implements CredentialsProvider { constructor ( private readonly credentials ? ) { } getCredentials ( ) { return Promise . resolve ( this . credentials ) ; } }