Skip to content

Commit

Permalink
add nice window for token gen
Browse files Browse the repository at this point in the history
  • Loading branch information
therealpaulgg authored Nov 9, 2023
1 parent cd95899 commit 917b595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/utils/tokengen.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ func GetToken() (string, error) {
}
builder := jwt.NewBuilder()
builder.Issuer("github.com/therealpaulgg/ssh-sync")
builder.IssuedAt(time.Now())
builder.Expiration(time.Now().Add(time.Minute))
builder.IssuedAt(time.Now().Add(-1 * time.Minute))
builder.Expiration(time.Now().Add(2 * time.Minute))
builder.Claim("username", profile.Username)
builder.Claim("machine", profile.MachineName)
tok, err := builder.Build()
Expand Down

0 comments on commit 917b595

Please sign in to comment.