Memco

Class MemcoAuthenticationError

The credential was missing, malformed or rejected.

Never worth retrying: the same credential will be refused again. Check that MEMCO_API_TOKEN, or the token given to MemcoOptions, is present and still current — or, for an API client, MEMCO_CLIENT_ID and MEMCO_CLIENT_SECRET, or clientId and clientSecret. Memco.connect proves the credential — a token by listing domains, client credentials by exchanging them for a token — so a stale one fails there rather than on the first real call.

Prefer error.name === 'MemcoAuthenticationError' to instanceof, for the reason this module's header gives.

Hierarchy (View Summary)

Index
code: Status

The gRPC status code, as @grpc/grpc-js's numeric status enum.

codeName: string

The status code's name, such as UNAUTHENTICATED.

detail: string

The service's own description of the failure, without the code prefix.

debugErrorString: string | undefined

gRPC's internal diagnostic string, when the call carried one.

On this page