gmnss1917
how to handle responses from the server on the client?
I'm trying to implement server side auth with a cookie, the cookie part it's working, but the thing is I want to save my user info - that is returned by the login function (name, avatar, etc) - in a context in order to use it across the app. How do I go about handling the response on the client in order to properly set it in the context ?
3 replies
<name>.server.ts file naming convetion ?
hello, I'm still kind of new to solid start, I was looking at the docs - into the session bit - and I noticed that it's using a filename convention of <name>.server.ts. Does this mean that whatever is written inside this file will only be run on the server or is it just convention to distinguish easily that which should be run on the server and that which should be run on the client ?
1 replies