agora-rest-client
Version:
Node.js REST client for Agora
16 lines (15 loc) • 414 B
TypeScript
/**
* Credential interface defines the authentication methods required
* for Agora API requests
*/
export interface Credential {
/**
* Returns the name of the credential
*/
getName(): string;
/**
* Sets authentication headers/parameters on the request
* @param init The request initialization options to authenticate
*/
setAuth(headers: Record<string, string>): void;
}