MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / isUnauthenticatedError

Function isUnauthenticatedError

pkg/webui/lib/errors/utils.js:203–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201 * `false` otherwise.
202 */
203export const isUnauthenticatedError = error =>
204 grpcStatusCode(error) === 16 || httpStatusCode(error) === 401
205
206/**
207 * Returns whether the grpc error represents a conflict with the current state on the server.

Callers 5

init.jsFile · 0.90
logout.jsFile · 0.90
packet-broker.jsFile · 0.90
createRequestLogicFunction · 0.90
init.jsFile · 0.90

Calls 2

grpcStatusCodeFunction · 0.85
httpStatusCodeFunction · 0.85

Tested by

no test coverage detected