@twurple/auth
Version:
Authenticate with Twitch and stop caring about refreshing tokens.
18 lines (16 loc) • 671 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IntermediateUserRemovalError = void 0;
const common_1 = require("@twurple/common");
/**
* Thrown whenever a user is removed from an {@link AuthProvider}
* and at the same time you try to execute an action in that user's context.
*/
class IntermediateUserRemovalError extends common_1.CustomError {
constructor(userId) {
super(`User ${userId} was removed while trying to fetch a token.
Make sure you're not executing any actions when you want to remove a user.`);
this.userId = userId;
}
}
exports.IntermediateUserRemovalError = IntermediateUserRemovalError;