lucia-auth / lucia

Authentication, simple and clean
https://lucia-auth.com
MIT License
9.19k stars 467 forks source link

bug: remove boolean flip on session validation #1682

Open zacharybenson opened 1 month ago

zacharybenson commented 1 month ago

Remove boolean flip on validateSession when evaluating if the current date is before the mid way point to the session expiration date. This addresses: https://github.com/lucia-auth/lucia/issues/1681#issue-2496502719