A comprehensive authentication solution for SolidStart applications, providing both server-side authentication logic and pre-built UI components.
Server-side authentication package with session management, user authentication, and security features.
Key features:
- Secure session handling with Vinxi integration
- Customizable login/register flows
- Password hashing support
- TypeScript-first design
Ready-to-use authentication UI components with light and dark themes.
Key features:
- Light/Dark theme variations
- Responsive design
- Google OAuth integration ready
- Customizable styling
# Install both packages
npm install @solidauth/server @solidauth/ui
# Additional peer dependencies
npm install @solidjs/router solid-js vinxi
Basic setup:
// Server setup
import { createAuthCallbacks } from '@solidauth/server';
import { useSession } from 'vinxi/http';
const auth = createAuthCallbacks(useSession);
// UI implementation
import { LoginFormLight } from '@solidauth/ui';
export default function AuthPage() {
return <LoginFormLight />;
}
solidauth/
├── packages/
│ ├── server/ # Server-side authentication logic
│ └── ui/ # Authentication UI components
└── tsconfig.base.json # Shared TypeScript configuration
- Clone the repository
- Install dependencies:
npm install
- Build packages:
cd packages/server && npm run build cd ../ui && npm run build
To test changes locally with an external app:
- Link packages:
cd packages/server && npm link cd ../ui && npm link
- In your app:
npm link @solidauth/server @solidauth/ui
Contributions welcome! Please feel free to submit a Pull Request.
MIT