/** * thrown when client authentication method is no longer usable * (e.g., key removed from keyset or server no longer supports method). */ export declare class AuthMethodUnsatisfiableError extends Error { name: string; } /** * thrown when a session is invalid and cannot be used. */ export declare class TokenInvalidError extends Error { name: string; readonly sub: string; constructor(sub: string, message?: string, options?: ErrorOptions); } /** * thrown when token refresh fails. */ export declare class TokenRefreshError extends Error { name: string; readonly sub: string; constructor(sub: string, message: string, options?: ErrorOptions); } /** * thrown when a session has been revoked. */ export declare class TokenRevokedError extends Error { name: string; readonly sub: string; constructor(sub: string, message?: string, options?: ErrorOptions); } /** * thrown when OAuth response indicates an error. */ export declare class OAuthResponseError extends Error { name: string; readonly response: Response; readonly error: string; readonly errorDescription?: string; constructor(response: Response, error: string, errorDescription?: string); get status(): number; } /** * thrown when OAuth callback contains an error. */ export declare class OAuthCallbackError extends Error { name: string; readonly error: string; readonly errorDescription?: string; readonly state?: string; constructor(error: string, errorDescription?: string, state?: string); } /** * thrown when metadata resolution fails. */ export declare class OAuthResolverError extends Error { name: string; } //# sourceMappingURL=errors.d.ts.map