mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
changing validation
This commit is contained in:
@@ -21,7 +21,7 @@ import (
|
||||
// SetJWT func will used to create the JWT while signing in and signing out
|
||||
func SetJWT(client nodepb.NodeServiceClient, network string) (context.Context, error) {
|
||||
home := ncutils.GetNetclientPathSpecific()
|
||||
tokentext, err := ncutils.GetFileWithRetry(home+"nettoken-"+network, 1)
|
||||
tokentext, err := os.ReadFile(home + "nettoken-" + network)
|
||||
if err != nil {
|
||||
err = AutoLogin(client, network)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user