botbook/node_modules/@azure/msal-browser/dist/error/NativeAuthError.d.ts

30 lines
1 KiB
TypeScript
Raw Normal View History

2024-09-04 13:13:15 -03:00
import { AuthError } from "@azure/msal-common";
import * as NativeAuthErrorCodes from "./NativeAuthErrorCodes";
export { NativeAuthErrorCodes };
export type OSError = {
error?: number;
protocol_error?: string;
properties?: object;
status?: string;
retryable?: boolean;
};
export declare const NativeAuthErrorMessages: {
user_switch: string;
};
export declare class NativeAuthError extends AuthError {
ext: OSError | undefined;
constructor(errorCode: string, description?: string, ext?: OSError);
}
/**
* These errors should result in a fallback to the 'standard' browser based auth flow.
*/
export declare function isFatalNativeAuthError(error: NativeAuthError): boolean;
/**
* Create the appropriate error object based on the WAM status code.
* @param code
* @param description
* @param ext
* @returns
*/
export declare function createNativeAuthError(code: string, description?: string, ext?: OSError): AuthError;
//# sourceMappingURL=NativeAuthError.d.ts.map