Hooks File Not Creating a Session #7
-
Hello, First of all, sincere thanks for making this repository public! This code is so well documented, and looks so efficient, the best SvelteKit/Supabase auth code I've seen to be honest 👍🏻 There's just one small thing - I can't get the hooks.server.ts file to create a session, which results in the user being unable to view either /self or /app. I actually prefer to add authorisation on an ad hoc basis, which you also documented so well, but I'm just concerned as I'm sure this isn't how it's mean't to behave. Initially I tried adding your code to an existing project, and when it didn't work as expected, I just cloned this repo and added my env details, but the same thing happens. I log in with GitHub - the user is shown in the header, but because there's no session coming from the hooks file, I'm unable to navigate.
Always logs "hooks session: null" Anyway, thanks again for your work on this and making it public - much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Thanks for checking out the repo Matt. Can you add a |
Beta Was this translation helpful? Give feedback.
Have you double-checked your jwt secret in your env file, with what's in the dashboard?