@uppy/companion-client
Version:
Client library for communication with Companion. Intended for use in Uppy plugins.
15 lines (11 loc) • 333 B
text/typescript
class AuthError extends Error {
isAuthError: boolean
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