Skip to content

Class: AuthError ​

A token refused, or options no token may carry. In @talkline/server-sdk only mintToken throws one, and only for its options — never for a network reason, since it makes no call: code names which rule, and detail says how, for your logs.

Extends ​

  • Error

Constructors ​

Constructor ​

ts
new AuthError(
   code, 
   detail, 
   retryable?
): AuthError;

Parameters ​

ParameterTypeDefault value
codeAuthErrorCodeundefined
detailstringundefined
retryablebooleanfalse

Returns ​

AuthError

Overrides ​

ts
Error.constructor

Properties ​

PropertyModifierTypeDefault value
codereadonlyAuthErrorCodeundefined
detailreadonlystringundefined
retryablereadonlybooleanfalse

Talkline documentation