SvelteKit frontend

Hello,

I’m trying to build a frontend page using SvelteKit similar to how Doppio has Vue/React options. I’m having difficulty with getting auth to work using cookies. I’m not very knowledgeable about auth in general. I’ve tried using frappe-js-sdk but I’m not really sure how to go about it. Has anyone tried using SvelteKit with Frappe as the backend? Any resources/guidance would be greatly appreciated.

Thanks,
Ishan

More specifically, I’m able to get the user login/password from a form, set the cookies from the +page.server.js file and log the user in.

However, once the user is logged in, I’m not sure how to pass the cookie to the frappe-js-sdk library to make authenticated requests as that user from the +page.server.js file.