โ๏ธ https://joyofcode.xyz/sveltekit-authentication-using-cookies
Learn SvelteKit authentication using cookies.
git clone https://github.com/joysofcode/sveltekit-auth-cookies.git
You can use npm
or pnpm
.
pnpm i
DATABASE_URL="file:./dev.db"
pnpx prisma db push
pnpx 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 dev
pnpm run build && pnpm run preview