@passlock/create-sveltekit
v0.9.30
Published
A CLI for creating new SvelteKit projects with Passkey authentication, Social Login and more
Downloads
30
Maintainers
Readme
Features
- 🔑 Passkey registration and authentication
- 📱 Apple sign in
- ☝️ Google sign in / one-tap
- 📪 Mailbox verification (via a one time code or link)
- 💾 CRUD operations via Prisma
- 🌘 Dark mode with theme selection (light/dark/system)
- 🚀 Daisy UI, Preline UI & Shadcn/UI variants
Requirements
- Node 18+
- pnpm (optional)
- This example project uses the cloud based Passlock framework for passkey registration and authentication. Passlock is free for personal and commercial use. Create an account at https://passlock.dev
Usage
Use the CLI to create a SvelteKit app. Choose from Daisy, Preline or Shadcn variants
pnpm create @passlock/sveltekit
Set the environment variables
You'll need to set three variables:
- PUBLIC_PASSLOCK_TENANCY_ID
- PUBLIC_PASSLOCK_CLIENT_ID
- PASSLOCK_API_KEY
Your Passlock Tenancy ID, Client ID and API Key (token) can be found in your Passlock console under settings.
Update the .env
file with the relevant credentials.
Start the dev server
pnpm run dev
More information
Please see the template homepage