UNPKG

@twurple/auth

Version:

Authenticate with Twitch and stop caring about refreshing tokens.

16 lines (15 loc) 394 B
import { CustomError } from '@twurple/common'; /** * Thrown when an intent is requested that was not recognized by the {@link AuthProvider}. */ export class UnknownIntentError extends CustomError { /** * The intent that was requested. */ intent; /** @private */ constructor(intent) { super(`Unknown intent: ${intent}`); this.intent = intent; } }