UNPKG

oauth2-client-ts

Version:

An exstensible OAuth 2.0, standard compliant client library for Node.js and the Web.

38 lines (37 loc) 1.13 kB
/** * Base type for all client errors produced by this library. */ export declare abstract class BaseError extends Error { } /** * Error indicating the options supplied for the client were either * invalid or insufficient for the attempted action. */ export declare class InvalidOptionsError extends BaseError { } /** * Error that is thrown whenever a networking error occurred. */ export declare class NetworkingError extends BaseError { } /** * Error indicating that the response received from the server was invalid. */ export declare class InvalidResponseError extends BaseError { readonly response?: unknown; constructor(message?: string, response?: unknown); } /** * Error indicating that the response received from the server was invalid. */ export declare class UnsupportedTokenTypeError extends BaseError { readonly tokenType?: unknown; constructor(message?: string, tokenType?: unknown); } /** * Error to be thrown by auto refresh callback functions * to indicate that a token is definitely expired. */ export declare class AutoRefreshTokenExpiredError extends BaseError { constructor(); }