UNPKG

@donation-alerts/auth

Version:

Authentication provider for Donation Alerts API with ability to automatically refresh user tokens.

22 lines (21 loc) 616 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UnregisteredUserError = void 0; const common_1 = require("@donation-alerts/common"); /** * An error indicating that a managed user is not registered in the authentication provider. */ class UnregisteredUserError extends common_1.CustomError { /** @internal */ constructor(_userId, message) { super(message); this._userId = _userId; } /** * The ID of the unregistered user. */ get userId() { return this._userId; } } exports.UnregisteredUserError = UnregisteredUserError;