This is a barebones repo that used to work out the best way to handle Netlify's GoTrue-JS library in a SvelteKit project.
I am by no means an expert and would be more than happy to correct any mistakes or implement improvements suggested.
Visit sveltekit-netlify-identity.netlify.app/ for the live version.