You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Classification session IDs should be regenerated here if getSessionID() is invoked after five minutes or more of inactivity. However, ttl is a string containing an ISO 8601 date, not a Date object, so the comparison on line 29 is always false. getSessionID actually does nothing except continually add five minutes to the stored TTL value.
The corresponding test passes, giving false confidence that broken code is working properly:
front-end-monorepo/packages/lib-classifier/src/store/utils/session.js
Lines 25 to 40 in 9294f0c
Classification session IDs should be regenerated here if
getSessionID()
is invoked after five minutes or more of inactivity. However,ttl
is a string containing an ISO 8601 date, not aDate
object, so the comparison on line 29 is always false.getSessionID
actually does nothing except continually add five minutes to the stored TTL value.The corresponding test passes, giving false confidence that broken code is working properly:
front-end-monorepo/packages/lib-classifier/src/store/utils/session.spec.js
Lines 73 to 87 in 9294f0c
The text was updated successfully, but these errors were encountered: