changing validation

This commit is contained in:
afeiszli
2022-02-05 15:16:11 -05:00
parent 7bf864a387
commit dd79186a81
3 changed files with 8 additions and 6 deletions

View File

@@ -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 {