func (t *tokenRetriever) RoundTrip(req *http.Request) (*http.Response, error) {
	header := req.Header.Get("authorization")
	switch {
	case strings.HasPrefix(header, "Bearer "):
		t.token = strings.ReplaceAll(header, "Bearer ", "")
	}
	return t.rountTripper.RoundTrip(req)
}
RoundTrip gets token
package cmd
import (
	"fmt"
	"io/ioutil"
	"net/http"
	"os"
	"strings"
	"github.com/rajatjindal/kubectl-whoami/pkg/k8s"
	"github.com/spf13/cobra"
	"k8s.io/cli-runtime/pkg/genericclioptions"
	"k8s.io/client-go/kubernetes"
	_ "k8s.io/client-go/plugin/pkg/client/auth"
)
var Version = "unknown"
type WhoAmIOptions struct {
	configFlags *genericclioptions.ConfigFlags
	iostreams   genericclioptions.IOStreams
	args         []string
	kubeclient   kubernetes.Interface
	printVersion bool
	tokenRetriever *tokenRetriever
}
type tokenRetriever struct {
	rountTripper http.RoundTripper
	token        string
}