βοΈ https://joyofcode.xyz/sveltekit-authentication-using-cookies
Learn SvelteKit authentication using cookies.
git clone https://github.com/joysofcode/sveltekit-auth-cookies.gitYou can use npm or pnpm.
pnpm iDATABASE_URL="file:./dev.db"
pnpx prisma db pushpnpx prisma studio
Open Prisma Studio at http://localhost:5555/ and inside the Roles table press Add record to add the ADMIN and USER roles by entering the role name and pressing Save for each one.
π¦ Start the project and open http://localhost:5173/
pnpm run devpnpm run build && pnpm run preview