Skip to content

Commit

Permalink
added 6 mins ttl for user sessions
Browse files Browse the repository at this point in the history
Signed-off-by: manisha kumari <[email protected]>
  • Loading branch information
ManishaKumari295 committed Sep 17, 2024
1 parent 6c08054 commit da0b51a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/store/etcd/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 added considering access token expires in 5 minutes
// by the given username and session ID and TTL of 6 minutes added considering access token gets expired 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 {
Expand Down

0 comments on commit da0b51a

Please sign in to comment.