āļø 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
.env.example
to .env
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.
pnpm run dev
pnpm run build && pnpm run preview