A modern minimalist authentication solution built with SvelteKit, featuring:
- User login and registration flows
- OTP verification
- Session management
- Secure API endpoints
- TailwindCSS styling
- Built with SvelteKit 5
- TypeScript support
- ESLint and Prettier configured
- TailwindCSS for styling
- Node.js adapter for deployment
First, install dependencies:
pnpm installStart the development server:
pnpm run dev
# or open in browser automatically
pnpm run dev -- --openpnpm run buildPreview the production build:
pnpm run previewThis project uses the @sveltejs/adapter-node for Node.js deployment. You may need to install other adapters for different environments.
Key files and directories:
src/routes/- Contains all page routessrc/lib/- Shared components and utilitiessrc/lib/api.ts- API endpointssrc/lib/session.ts- Session management