forked from cartsnitch/cartsnitch
3f9c683522
Better-Auth v1.5.6+ stores tokens as SHA-256 hashes in the sessions table. The raw cookie value must be hashed before querying so that stored-hash == computed-hash, restoring auth on all data endpoints. Also adopts SESSION_COOKIE_NAMES list from PR #95 so both pending PRs (cookie fix and hash fix) can merge without conflict. Fixes CAR-322. Regression from PR #95 (fix/secure-cookie-name). Co-Authored-By: Paperclip <noreply@paperclip.ing>