react-native-msal
Version:
React Native wrapper for iOS and Android
13 lines (12 loc) • 718 B
TypeScript
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;