From cc1163fd579788df4650fac4a552b0bebf543f5f Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Fri, 4 Jun 2021 16:18:21 +0300 Subject: [PATCH] [#298] pkg/session/test: Set lifetime fields in Generate func Signed-off-by: Leonard Lyubich --- pkg/session/test/token.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/session/test/token.go b/pkg/session/test/token.go index 8d51720c..82c405b7 100644 --- a/pkg/session/test/token.go +++ b/pkg/session/test/token.go @@ -32,6 +32,9 @@ func Generate() *session.Token { tok.SetID(uid) tok.SetOwnerID(ownerID) tok.SetSessionKey(keyBin) + tok.SetExp(11) + tok.SetNbf(22) + tok.SetIat(33) return tok }