Fix go-micro auth wrapper init

This commit is contained in:
Ben Toogood
2020-04-03 12:27:01 +01:00
parent ebb1a42d48
commit dea2d7ab9f
3 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,6 @@ package wrapper
import (
"context"
"fmt"
"strings"
"github.com/micro/go-micro/v2/auth"
@@ -179,7 +178,6 @@ func AuthHandler(fn func() auth.Auth) server.HandlerWrapper {
logger.Errorf("Missing request namespace")
namespace = auth.DefaultNamespace
}
fmt.Printf("Namespace is %v\n", namespace)
// Inspect the token and get the account
account, err := a.Inspect(token)