Appearance
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
| Parameter | Type | Default value |
|---|---|---|
code | AuthErrorCode | undefined |
detail | string | undefined |
retryable | boolean | false |
Returns
AuthError
Overrides
ts
Error.constructorProperties
| Property | Modifier | Type | Default value |
|---|---|---|---|
code | readonly | AuthErrorCode | undefined |
detail | readonly | string | undefined |
retryable | readonly | boolean | false |