UNPKG

react-native-msal

Version:
13 lines (12 loc) 718 B
import type { MSALResult, MSALInteractiveParams, MSALSilentParams, MSALSignoutParams, MSALAccount, MSALConfiguration } from './types'; declare type RNMSALNativeModule = { createPublicClientApplication(config: MSALConfiguration): Promise<void>; acquireToken(params: MSALInteractiveParams): Promise<MSALResult | undefined>; acquireTokenSilent(params: MSALSilentParams): Promise<MSALResult | undefined>; getAccounts(): Promise<MSALAccount[]>; getAccount(accountIdentifier: string): Promise<MSALAccount | undefined>; removeAccount(account: MSALAccount): Promise<boolean>; signout(params: MSALSignoutParams): Promise<boolean>; }; declare const RNMSAL: RNMSALNativeModule; export default RNMSAL;