From 6c08054e47663a04f7ed95224da310fb74332369 Mon Sep 17 00:00:00 2001 From: manisha kumari Date: Tue, 17 Sep 2024 14:34:07 +0530 Subject: [PATCH] 6 mins ttl for user sessions Signed-off-by: manisha kumari --- backend/store/etcd/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/store/etcd/session.go b/backend/store/etcd/session.go index f6fe7c9a4..910d09873 100644 --- a/backend/store/etcd/session.go +++ b/backend/store/etcd/session.go @@ -30,7 +30,7 @@ func (s *Store) GetSession(ctx context.Context, username, sessionID string) (str } // UpdateSession applies the supplied state to the session uniquely identified -// by the given username and session ID and TTL of 6 minutes considering access token expires in 5 minutes +// by the given username and session ID and TTL of 6 minutes added considering access token expires in 5 minutes func (s *Store) UpdateSession(ctx context.Context, username, sessionID, state string) error { leaseResp, err := s.client.Grant(ctx, 60*6) if err != nil {