mirror of
https://github.com/MeowLynxSea/Proksea.git
synced 2025-07-10 19:34:41 +00:00
66 lines
2.0 KiB
TypeScript
66 lines
2.0 KiB
TypeScript
import { AuthError } from "@azure/msal-common";
|
|
/**
|
|
* NodeAuthErrorMessage class containing string constants used by error codes and messages.
|
|
*/
|
|
export declare const NodeAuthErrorMessage: {
|
|
invalidLoopbackAddressType: {
|
|
code: string;
|
|
desc: string;
|
|
};
|
|
unableToLoadRedirectUri: {
|
|
code: string;
|
|
desc: string;
|
|
};
|
|
noAuthCodeInResponse: {
|
|
code: string;
|
|
desc: string;
|
|
};
|
|
noLoopbackServerExists: {
|
|
code: string;
|
|
desc: string;
|
|
};
|
|
loopbackServerAlreadyExists: {
|
|
code: string;
|
|
desc: string;
|
|
};
|
|
loopbackServerTimeout: {
|
|
code: string;
|
|
desc: string;
|
|
};
|
|
stateNotFoundError: {
|
|
code: string;
|
|
desc: string;
|
|
};
|
|
};
|
|
export declare class NodeAuthError extends AuthError {
|
|
constructor(errorCode: string, errorMessage?: string);
|
|
/**
|
|
* Creates an error thrown if loopback server address is of type string.
|
|
*/
|
|
static createInvalidLoopbackAddressTypeError(): NodeAuthError;
|
|
/**
|
|
* Creates an error thrown if the loopback server is unable to get a url.
|
|
*/
|
|
static createUnableToLoadRedirectUrlError(): NodeAuthError;
|
|
/**
|
|
* Creates an error thrown if the server response does not contain an auth code.
|
|
*/
|
|
static createNoAuthCodeInResponseError(): NodeAuthError;
|
|
/**
|
|
* Creates an error thrown if the loopback server has not been spun up yet.
|
|
*/
|
|
static createNoLoopbackServerExistsError(): NodeAuthError;
|
|
/**
|
|
* Creates an error thrown if a loopback server already exists when attempting to create another one.
|
|
*/
|
|
static createLoopbackServerAlreadyExistsError(): NodeAuthError;
|
|
/**
|
|
* Creates an error thrown if the loopback server times out registering the auth code listener.
|
|
*/
|
|
static createLoopbackServerTimeoutError(): NodeAuthError;
|
|
/**
|
|
* Creates an error thrown when the state is not present.
|
|
*/
|
|
static createStateNotFoundError(): NodeAuthError;
|
|
}
|
|
//# sourceMappingURL=NodeAuthError.d.ts.map
|