Skip to content

Commit

Permalink
fix: use of undeclared var
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelVallenet committed Apr 25, 2023
1 parent 39dd386 commit c77e5d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions go/cmd/pathwar/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,9 @@ func cliMeCommand() *ffcli.Command {
// JWT Token
{
// fmt.Println(godev.PrettyJSON(session.Claims))
tokenAgo := humanize.Time(*session.Claims.ActionToken.AuthTime)
issuedAgo := humanize.Time(*session.Claims.ActionToken.Iat)
expireIn := humanize.Time(*session.Claims.ActionToken.Exp)
fmt.Printf("Your OAuth token was created %s, (re)issued %s and will expire in %s.\n", tokenAgo, issuedAgo, expireIn)
fmt.Printf("Your OAuth token was (re)issued %s and will expire in %s.\n", issuedAgo, expireIn)
}

// Notifications
Expand Down

0 comments on commit c77e5d3

Please sign in to comment.