func New(ak keydb.AuthorisedKey) TokenConfig {
	tc := TokenConfig{
		TokenType: "u2f",
		KeySlots:  []string{"0"},
		KeyHandle: base64.StdEncoding.EncodeToString(ak.U2FKeyHandle),
		KeyHash:   base64.StdEncoding.EncodeToString(ak.PublicKeyHash),
	}
	return tc
}
New returns a new TokenConfig for the supplied key
package tokenconfig
import (
	"encoding/base64"
	"fmt"
	"github.com/darkskiez/u2f-luks/keydb"
)
type TokenConfig struct {
	TokenType string   `json:"type"`       
	KeySlots  []string `json:"keyslots"`   
	KeyHandle string   `json:"keyhandle"`  
	KeyHash   string   `json:"keyhash"`    
}