This is a demo to try out Lucia, a "user and session management library that provides an abstraction layer between your app and your database", with Prisma.
This is also using Lucia's OAuth package for Github's OAuth and my own implementation for Twitch's OAuth.
Create a .env
file and fill in the following with your OAuth App info:
DATABASE_URL="file:./dev.sqlite"
PUBLIC_GITHUB_CLIENT_ID="..."
GITHUB_CLIENT_SECRET="..."
PUBLIC_TWITCH_CLIENT_ID="..."
TWITCH_CLIENT_SECRET="..."
PUBLIC_TWITCH_REDIRECT_URI="..."
Install the dependencies and start the development server:
# install deps
pnpm i
# start dev server
pnpm dev