/** * Thrown when network requests to the Auth server fail. */ export declare class GenericError extends Error { error: string; error_description: string; constructor(error: string, error_description: string); static fromPayload({ error, error_description }: { error: string; error_description: string; }): GenericError; } /** * Thrown when handling the redirect callback fails. */ export declare class AuthenticationError extends GenericError { state: string; constructor(error: string, error_description: string, state: string); } /** * Thrown when silent auth times out (usually due to a configuration issue) or * when network requests to the Auth server timeout. */ export declare class TimeoutError extends GenericError { constructor(); } /** * Error thrown when the login popup times out (if the user does not complete auth) */ export declare class PopupTimeoutError extends TimeoutError { popup: Window; constructor(popup: Window); } export declare class PopupCancelledError extends GenericError { popup: Window; constructor(popup: Window); } /** * Error thrown when there is no refresh token to use */ export declare class MissingRefreshTokenError extends GenericError { constructor(); }