This is a Sveltekit auth starter project. It utilizes Lucia for authentication, Skeleton for ui elements, Prisma for database connectivity and type safety, Lucide for icons, inlang for translation, Zod and Superforms to handle forms and validation and Sveltekit.
Suggested fix for #5
I moved the auth logic from layout.svelte.ts into hooks.server.ts and delete layout.svelte.ts because it has no purpose anymore. I also added the code bits to recreate the issue.
Feel free to refactor and undo changes for the scope of the repo (e.g. the fetch call to an external api could be removed or the layout.svelte.ts could be keept just for showing whats possible)
Suggested fix for #5 I moved the auth logic from
layout.svelte.ts
intohooks.server.ts
and deletelayout.svelte.ts
because it has no purpose anymore. I also added the code bits to recreate the issue.Feel free to refactor and undo changes for the scope of the repo (e.g. the fetch call to an external api could be removed or the
layout.svelte.ts
could be keept just for showing whats possible)