Introducing PasskeyMe's New JavaScript and React SDKs - Firebase Auth for the Passkey Era
We're excited to announce the launch of PasskeyMe's completely redesigned JavaScript and React SDKs! These new SDKs bring a Firebase Auth-like developer experience to passkey authentication using hosted authentication pages, making it easier than ever to integrate secure, passwordless authentication into your web applications.
๐ What's New?โ
@passkeyme/auth - Core JavaScript/TypeScript SDKโ
Our new core SDK provides a complete authentication solution using PasskeyMe's hosted authentication pages:
import { PasskeymeAuth } from '@passkeyme/auth';
const auth = new PasskeymeAuth({
appId: 'your-app-id',
baseUrl: 'https://auth.passkeyme.com',
mode: 'hosted' // Uses your branded hosted auth pages
});
// Redirect to hosted auth page (all methods)
auth.redirectToLogin();
// Redirect to specific OAuth provider
auth.redirectToOAuth('google');
// Handle return from hosted auth
const user = await auth.handleAuthCallback();
@passkeyme/react-auth - React Integration SDKโ
The React SDK brings hosted authentication directly into your React components with simple hooks:
import {
PasskeymeProvider,
usePasskeyme
} from '@passkeyme/react-auth';
function App() {
return (
<PasskeymeProvider config={{ appId: 'your-app-id' }}>
<AuthenticatedApp />
</PasskeymeProvider>
);
}
function LoginPage() {
const { redirectToLogin, redirectToOAuth } = usePasskeyme();
return (
<div>
<button onClick={() => redirectToLogin()}>
๐ Sign In (All Methods)
</button>
<button onClick={() => redirectToOAuth('google')}>
๐ Continue with Google
</button>
</div>
);
}
๐ฏ Why Hosted Authentication?โ
The Firebase Auth Experience, But Betterโ
While Firebase Auth has set the gold standard for authentication SDKs, it requires complex setup for OAuth providers and lacks comprehensive passkey support. We created something that's even simpler while being more powerful.
Our Solution: Hosted Pages + Self-Hosted Controlโ
PasskeyMe's hosted authentication approach combines the best of all worlds:
- โ Zero Configuration: No OAuth app setup, no complex SDK configuration
- โ Centralized Branding: Your logo, colors, and styling across all apps
- โ Passkey-First: Native WebAuthn/passkey support built from the ground up
- โ Self-Hosted: Full control over your authentication infrastructure
- โ TypeScript-First: Complete type safety and excellent developer experience
- โ Framework Agnostic: Works with React, Vue, Angular, Next.js, or vanilla JavaScript