braveheartwilliam
BABetter Auth
•Created by braveheartwilliam on 2/26/2025 in #help
GetSession not returning user and/or session objects, here’s details
@rtmorgan thanks. Already have tried both with and without with each suggested solution. The issue is something misaligned between signInEmail cookie and header and getSession validation that fails before interacting with the database. I now log database activity at sqlite3 and getSession doesn’t make any calls. Thanks for your help.
3 replies
BABetter Auth
•Created by braveheartwilliam on 2/25/2025 in #help
getSession returns/is null in hooks.server.ts (svelte5/sveltekit)
Thank-you! Another reply said the same thing but I had commented out the "asResponse" so couldn't see the "set-cookie".Thanks for taking the time to reply. 😀
4 replies