lucia-auth / lucia

Authentication, simple and clean
https://lucia-auth.com
BSD Zero Clause License
9.67k stars 502 forks source link

fix: null type for session validation result #1729

Closed theAnuragMishra closed 4 weeks ago

theAnuragMishra commented 1 month ago

the session validation result is begin returned as null when the session id is expired but the type for the result doesn't have null. fixed this.

pilcrowonpaper commented 4 weeks ago

The example code was broken. This

return null;

should've been this.

return { session: null, user: null };

Just fixed it!