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

Function SetAuth

cmd/ttn-lw-cli/internal/api/grpc.go:85–90  ·  view source on GitHub ↗

SetAuth sets the authentication information.

(authType, authValue string)

Source from the content-addressed store, hash-verified

83
84// SetAuth sets the authentication information.
85func SetAuth(authType, authValue string) {
86 auth = &rpcmetadata.MD{
87 AuthType: authType,
88 AuthValue: authValue,
89 }
90}
91
92// requestInterceptor is a gRPC interceptor logging the request payload
93func requestInterceptor(ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {

Callers 1

requireAuthFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected