From c5e30c0e6e1053b5e86253572dfb91320b45b18b Mon Sep 17 00:00:00 2001 From: Ben Toogood Date: Tue, 31 Mar 2020 13:30:14 +0100 Subject: [PATCH] Fixes for CLI login --- grpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grpc.go b/grpc.go index 340f2df..54c4599 100644 --- a/grpc.go +++ b/grpc.go @@ -141,7 +141,7 @@ func (g *grpcClient) call(ctx context.Context, node *registry.Node, req client.R // fall back to using the authorization token set in config, // this enables the CLI to provide a token if len(header["authorization"]) == 0 { - if token, err := config.Get("token"); err == nil && len(token) > 0 { + if token, err := config.Get("micro", "auth", "token"); err == nil && len(token) > 0 { header["authorization"] = auth.BearerScheme + token } }