SvelteKit Issues
Hi, I've been following the SvelteKit guide and I am unable to get the session on the client side.
server auth
client auth
hooks.server.ts
Whenever I try to get the session on the client side, I get this error: 
[404] GET /api/auth/get-session.
I am able to interact with the server auth and can create accounts.
I have tried adding trustedDomains in the server auth then added the baseURL into the client auth and I no longer get the same issue (commented out), instead I get Cross-Origin Request Blocked errors.Solution:Jump to solution
After looking it into, I realised the issue was that I was running my server on another machine. If you have a similar workflow, you have to set the url to the local IP of the machine that is running the server. Make sure to add the trustedDomains and baseURL parameters
1 Reply
Solution
After looking it into, I realised the issue was that I was running my server on another machine. If you have a similar workflow, you have to set the url to the local IP of the machine that is running the server. Make sure to add the trustedDomains and baseURL parameters