UNPKG

859 BTypeScriptView Raw
1import { ServerError } from "./ServerError";
2export declare const InteractionRequiredAuthErrorMessage: {
3 interactionRequired: {
4 code: string;
5 };
6 consentRequired: {
7 code: string;
8 };
9 loginRequired: {
10 code: string;
11 };
12};
13/**
14 * Error thrown when the user is required to perform an interactive token request.
15 */
16export declare class InteractionRequiredAuthError extends ServerError {
17 constructor(errorCode: string, errorMessage?: string);
18 static isInteractionRequiredError(errorString: string): boolean;
19 static createLoginRequiredAuthError(errorDesc: string): InteractionRequiredAuthError;
20 static createInteractionRequiredAuthError(errorDesc: string): InteractionRequiredAuthError;
21 static createConsentRequiredAuthError(errorDesc: string): InteractionRequiredAuthError;
22}