@azure/msal-browser
Version:
Microsoft Authentication Library for js
22 lines (21 loc) • 972 B
TypeScript
import { AuthorizationCodeRequest, AuthenticationResult, AuthorizationCodeClient } from "@azure/msal-common";
import { BrowserStorage } from "../cache/BrowserStorage";
/**
* Abstract class which defines operations for a browser interaction handling class.
*/
export declare abstract class InteractionHandler {
protected authModule: AuthorizationCodeClient;
protected browserStorage: BrowserStorage;
protected authCodeRequest: AuthorizationCodeRequest;
constructor(authCodeModule: AuthorizationCodeClient, storageImpl: BrowserStorage);
/**
* Function to enable user interaction.
* @param requestUrl
*/
abstract initiateAuthRequest(requestUrl: string, authCodeRequest: AuthorizationCodeRequest): Window | Promise<HTMLIFrameElement>;
/**
* Function to handle response parameters from hash.
* @param locationHash
*/
handleCodeResponse(locationHash: string): Promise<AuthenticationResult>;
}