added build tag for gui

This commit is contained in:
0xdcarns
2022-05-05 11:11:37 -04:00
parent 7a1b719a91
commit 81ab4f76bb
5 changed files with 36 additions and 22 deletions

View File

@@ -8,6 +8,13 @@ import (
"github.com/gravitl/netmaker/models"
)
var (
// GuiActive - indicates if gui is active or not
GuiActive = false
// GuiRun - holds function for main to call
GuiRun interface{}
)
// ParseAccessToken - used to parse the base64 encoded access token
func ParseAccessToken(token string) (*models.AccessToken, error) {
tokenbytes, err := base64.StdEncoding.DecodeString(token)