import { IAuthenticationService } from "./IAuthenticationService"; import { IMsalAuthenticationConfig } from "./Msal2AuthenticationService"; import { ICacheService } from "./cache/ICacheService"; export interface ICustomAuthResult { access_token: string; client_info?: string; expires_in: number; ext_expires_in: number; id_token: string; refresh_token: string; scope: string; token_type: string; } export declare class MSAL2CustomAuthService implements IAuthenticationService { config: IMsalAuthenticationConfig; protected usePopup: boolean; protected resourceTokenMap: Map; resourceScopeMap: Map; protected cacheService: ICacheService; private codeVerifier; private state; constructor(config: IMsalAuthenticationConfig, usePopup?: boolean); private getCodeVerifier; protected buildLoginUrl(resource: string): string; protected getCodeFromLoginWindow: (loginWindow: any, callback: (result: string) => void) => void; /** * This method is used to login the user * @param resource The resource to login to * @returns The authentication code **/ protected loginUser(resource: string): Promise; getAccessTokenFromCode(resource: string, code: string): Promise; getAccessTokenFromRefreshToken(resource: string, refreshToken: string): Promise; getAuthResult(resource: string): Promise; isAuthenticated(): Promise; logout(): Promise; clearCache(): Promise; getAccessToken(resource: string): Promise; }