Skip to content

Commit

Permalink
fix: handle token expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicto committed May 11, 2024
1 parent ffdebce commit 75155b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion impartus.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@ func LoginAndSetToken() {
if response.StatusCode == http.StatusOK {
config.Token = string(token)
log.Printf("Token set from .token with length %d\n", len(config.Token))
return
} else {
log.Println("Token is invalid")
}
return
}
}
}
Expand Down

0 comments on commit 75155b3

Please sign in to comment.