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

Function IsUnauthenticated

pkg/errors/codes.go:125–125  ·  view source on GitHub ↗

IsUnauthenticated returns whether the given error is of type Unauthenticated.

(err error)

Source from the content-addressed store, hash-verified

123
124// IsUnauthenticated returns whether the given error is of type Unauthenticated.
125func IsUnauthenticated(err error) bool { return HasCode(err, uint32(codes.Unauthenticated)) }

Callers 15

registerEntityRightsFunction · 0.92
registerAuthInfoFunction · 0.92
TestAccessFetcherFunction · 0.92
TestHooksFunction · 0.92
GetMethod · 0.92
ClientLogoutMethod · 0.92
TestServerFunction · 0.92
TestRequestMetadataFunction · 0.92
TestCodesFunction · 0.92
TestGRPCFunction · 0.92

Calls 1

HasCodeFunction · 0.85

Tested by 15

TestAccessFetcherFunction · 0.74
TestHooksFunction · 0.74
TestServerFunction · 0.74
TestRequestMetadataFunction · 0.74
TestCodesFunction · 0.74
TestGRPCFunction · 0.74
TestUsersCRUDFunction · 0.74
TestGatewaysPermissionsFunction · 0.74