Quick Integration
Add "Sign in with Flowsta" to your app in minutes. OAuth 2.0 + PKCE - no client secrets required.
OAuth-only authentication with zero-knowledge privacy. Built on Holochain for censorship-resistant identity.
import { FlowstaAuth } from '@flowsta/auth';
// Initialize the SDK
const auth = new FlowstaAuth({
clientId: 'your_client_id',
redirectUri: 'https://yourapp.com/auth/callback'
});
// Redirect to Flowsta login
auth.login();
// On your callback page
const user = await auth.handleCallback();
console.log('Welcome,', user.displayName);
console.log('Username:', user.username);
console.log('DID:', user.did);Traditional authentication services like Auth0 and Firebase store your user data in centralized databases. If their servers go down or get compromised, your users lose access.
Flowsta Auth is different:
Perfect for applications that need:
When users authenticate, you receive:
interface FlowstaUser {
id: string; // Unique user ID
email?: string; // Email (if 'email' scope granted)
username?: string; // Username (if set by user)
displayName?: string; // Display name
profilePicture?: string;
agentPubKey?: string; // Holochain agent public key
did?: string; // W3C Decentralized Identifier
}