UNPKG

@microsoft/teams.api

Version:

<p> <a href="https://www.npmjs.com/package/@microsoft/teams.api" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.api/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.api?activeTab=code" t

25 lines (23 loc) 658 B
/** * credentials for app authentication */ type Credentials = ClientCredentials | TokenCredentials; /** * credentials for authentication * of an app via `clientId` and `clientSecret` */ type ClientCredentials = { readonly clientId: string; readonly clientSecret: string; readonly tenantId?: string; }; /** * credentials for authentication * of an app via any external auth method */ type TokenCredentials = { readonly clientId: string; readonly tenantId?: string; readonly token: (scope: string | string[], tenantId?: string) => string | Promise<string>; }; export type { ClientCredentials, Credentials, TokenCredentials };