@microsoft/teamsfx-react
Version:
React helper functions for Microsoft TeamsFx
46 lines • 1.2 kB
TypeScript
import { TeamsUserCredentialAuthConfig, TeamsUserCredential } from "@microsoft/teamsfx";
import { Theme } from "@fluentui/react-components";
/**
* @deprecated This package will be deprecated by 2026-07.
*/
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
*
* @deprecated This package will be deprecated by 2026-07.
* @public
*/
export declare function useTeamsUserCredential(authConfig: TeamsUserCredentialAuthConfig): TeamsContextWithCredential;
//# sourceMappingURL=useTeamsUserCredential.d.ts.map