UNPKG

@kwiz/common

Version:

KWIZ common utilities and helpers for M365 platform

9 lines (8 loc) 692 B
import { SPFxAuthTokenType } from "../../types/auth"; export declare function GetTokenAudiencePrefix(appId: string): string; export declare function GetDefaultScope(appId: string): string; export declare function GetMSALSiteScope(hostName: string): string; /** Acquire an authorization token for a Outlook, Graph, or SharePoint the same way SPFx clients do */ export declare function GetSPFxClientAuthToken(siteUrl: string, spfxTokenType?: SPFxAuthTokenType): Promise<string>; /** Acquire an authorization token for a Outlook, Graph, or SharePoint the same way SPFx clients do */ export declare function GetSPFxClientAuthTokenSync(siteUrl: string, spfxTokenType?: SPFxAuthTokenType): string;