solidjs-community/mediakit

The Server Side example is out of date

Closed this issue · 2 comments

Hey, thanks for the great project. I was poking around hoping to find a better solution to my issue regarding reading the session on the server side. I've noted your example is out of date, as createServerData$ is now no longer used.

It seems the request or data from the session must be passed down on each function call, rather than accessing the session directly, as per the Vinxi useSession.

It appears that the example on this link https://mediakit-taupe.vercel.app/auth/getsession (which is referenced at the bottom of the README.md) is updated but not in the README.md
I am also trying to get the session on the server side but when trying to use the example in the link I get "TypeError: Cannot read properties of undefined (reading 'id')", that may be due to something I'm not doing right on my end. If you could let me know if you also get the same error, that would be great.

55a6c62

i think that is it, follow create-jd-app usage for the best solid auth usage.