Skip to content

Commit b446edb

Browse files
committed
remove forever tokens
1 parent 1df6a4e commit b446edb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎backend/session/session.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (s *State) Encode() ([]byte, error) {
4949

5050
// IsExpired checks if the session has expired
5151
func (s *State) IsExpired() bool {
52-
return !s.ExpiresAt.IsZero() && time.Now().After(s.ExpiresAt)
52+
return s.ExpiresAt.IsZero() || time.Now().After(s.ExpiresAt)
5353
}
5454

5555
// SetExpiration sets the session expiration time

0 commit comments

Comments
 (0)