Skip to content

Commit

Permalink
session/test: "generate" valid session tokens (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-khimov authored Jul 30, 2024
2 parents 35cabdd + 0f82848 commit fced97d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions session/test/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ func Container() session.Container {
tok.ApplyOnlyTo(cidtest.ID())
tok.SetID(uuid.New())
tok.SetAuthKey((*neofsecdsa.PublicKey)(&priv.PublicKey))
tok.SetExp(11)
tok.SetIat(11)
tok.SetNbf(22)
tok.SetIat(33)
tok.SetExp(33)

return tok
}
Expand Down Expand Up @@ -65,9 +65,9 @@ func Object() session.Object {
tok.LimitByObjects(oidtest.ID(), oidtest.ID())
tok.SetID(uuid.New())
tok.SetAuthKey((*neofsecdsa.PublicKey)(&priv.PublicKey))
tok.SetExp(11)
tok.SetIat(11)
tok.SetNbf(22)
tok.SetIat(33)
tok.SetExp(33)

return tok
}
Expand Down

0 comments on commit fced97d

Please sign in to comment.