Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

AccountIdentifiers

AccountIdentifiers: Partial<Pick<AccountInfo, "homeAccountId" | "localAccountId" | "username">>

AuthenticatedTemplateProps

AuthenticatedTemplateProps: PropsWithChildren<AccountIdentifiers>

MsalAuthenticationProps

MsalAuthenticationProps: PropsWithChildren<AccountIdentifiers & { authenticationRequest?: PopupRequest | RedirectRequest | SsoSilentRequest; errorComponent?: React.ElementType<MsalAuthenticationResult>; interactionType: InteractionType; loadingComponent?: React.ElementType<IMsalContext> }>

MsalAuthenticationResult

MsalAuthenticationResult: { error: AuthError | null; login: Function; result: AuthenticationResult | null }

Type declaration

MsalProviderProps

MsalProviderProps: PropsWithChildren<{ instance: IPublicClientApplication }>

UnauthenticatedTemplateProps

UnauthenticatedTemplateProps: PropsWithChildren<AccountIdentifiers>

WithMsalProps

WithMsalProps: { msalContext: IMsalContext }

Type declaration

Variables

Const MsalConsumer

MsalConsumer: Consumer<IMsalContext> = ...

Const MsalContext

MsalContext: Context<IMsalContext> = ...

Const version

version: "1.1.0" = "1.1.0"

Functions

AuthenticatedTemplate

MsalAuthenticationTemplate

MsalProvider

UnauthenticatedTemplate

useAccount

useIsAuthenticated

Const useMsal

useMsalAuthentication

Const withMsal

  • withMsal<P>(Component: ComponentType<P>): FunctionComponent<Pick<P, SetDifference<keyof P, "msalContext">>>
  • Higher order component wraps provided component with msal by injecting msal context values into the component's props

    Type parameters

    Parameters

    • Component: ComponentType<P>

    Returns FunctionComponent<Pick<P, SetDifference<keyof P, "msalContext">>>

Generated using TypeDoc