UNPKG

@uppy/companion-client

Version:

Client library for communication with Companion. Intended for use in Uppy plugins.

12 lines (11 loc) 352 B
class AuthError extends Error { isAuthError; constructor() { super('Authorization required'); this.name = 'AuthError'; // we use a property because of instanceof is unsafe: // https://github.com/transloadit/uppy/pull/4619#discussion_r1406225982 this.isAuthError = true; } } export default AuthError;