UNPKG

@donation-alerts/auth

Version:

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

18 lines (17 loc) 444 B
import { CustomError } from '@donation-alerts/common'; /** * An error indicating that a managed user is not registered in the authentication provider. */ export class UnregisteredUserError extends CustomError { /** @internal */ constructor(_userId, message) { super(message); this._userId = _userId; } /** * The ID of the unregistered user. */ get userId() { return this._userId; } }