UNPKG

@microsoft/teamsfx-react

Version:

React helper functions for Microsoft TeamsFx

42 lines 1.07 kB
import { TeamsUserCredentialAuthConfig, TeamsUserCredential } from "@microsoft/teamsfx"; import { Theme } from "@fluentui/react-components"; export type TeamsContextWithCredential = { /** * Instance of TeamsUserCredential. */ teamsUserCredential?: TeamsUserCredential; /** * Status of data loading. */ loading: boolean; /** * Error information. */ error: unknown; /** * Indicates that current environment is in Teams */ inTeams?: boolean; /** * Teams theme. */ theme: Theme; /** * Teams theme string. */ themeString: string; /** * Teams context object. */ context?: any; }; /** * Initialize TeamsFx SDK with customized configuration. * * @param authConfig - custom configuration to override default ones. * @returns TeamsContextWithCredential object * * @public */ export declare function useTeamsUserCredential(authConfig: TeamsUserCredentialAuthConfig): TeamsContextWithCredential; //# sourceMappingURL=useTeamsUserCredential.d.ts.map