Add QSEL Authenticator to your application
QselBase is the sign-in and session-check layer. It sits beside an existing application. The browser starts the session and shows the QR code. Your server confirms the session before it grants access.
What QselBase Gives You
Session checks
QselBase checks the authenticator approval before your application should accept the session. Revocation only helps if your server asks again.
Application data
A managed data API with access rules per collection. It does not replace your authorization logic.
Projects and keys
Register the application, issue a public project key, and review connected users from the developer console.
Drop-in SDK
npm install and go. Works with Next.js, React, Vue, Svelte, and plain HTML. Handles QR codes, deep links, and polling.
No password for this sign-in
This flow does not ask you to store a password. You still design for device loss, expired sessions, and an unavailable verification service.
Mobile-First Login
QR scan for desktop, deep link for mobile-to-mobile. Automatic device detection and flow adaptation.
Quick Start
Install, configure the public project key, start a session, then confirm it on the server.
Install the SDK
npm install @qselbase/sdk axiosConfigure Environment
# .env.local — browser only NEXT_PUBLIC_QSELBASE_URL=https://your-qselbase-instance NEXT_PUBLIC_QSELBASE_API_KEY=qb_pk_your_public_key NEXT_PUBLIC_QSELBASE_PARTNER_ID=your-project-id
A key that starts with qb_pk_ is a public project key. The SDK rejects keys that start with qb_sk_. Any NEXT_PUBLIC_ value is bundled into browser code, so the public key will be visible to visitors. Use it to start a sign-in. Do not put a privileged credential in a NEXT_PUBLIC_ variable. Confirm the session from your server before any privileged action.
Before you start
- Node.js with the QselBase SDK and axios installed.
- A QselBase project id and a qb_pk_ key from the developer console.
- QSEL Authenticator installed from the Android beta on the phone that will approve sign-in.
- A server route that calls verify before the application grants access. The test environment is the beta, not a production identity deployment.
Start the session in the browser
const session = await qb.auth.createSession({ eventType: 'login' });
// Show session.qrCodeDataUrl, or open the mobile link.
await qb.auth.waitForApproval(session.sessionId);
// Approval finished. Your server still has to accept the session.Confirm, then handle failure
const result = await qb.auth.verify();
if (!result.valid) {
// Declined, expired, or revoked. Do not grant access.
return;
}
// Privileged work happens only after this check.
await qb.auth.signOut();SDK Reference
Browser sign-in, then a server check. Sign out when the session should end.
import { QselBase } from '@qselbase/sdk';
const qb = new QselBase({
projectId: 'your-partner-id',
apiKey: 'qb_pk_...',
baseUrl: 'https://your-qselbase-url',
});
// ── Authentication ──────────────────────────────
// Create a session (returns QR code data URL + deep link)
const session = await qb.auth.createSession({
eventType: 'login',
});
// Display session.qrCodeDataUrl as <img> on your login page
// User scans with QSEL Authenticator
// Wait for approval (polls automatically)
await qb.auth.waitForApproval(session.sessionId);
// Approval finished in the browser. That is not access yet.
// Confirm the session from your server before any privileged action.
const result = await qb.auth.verify();
if (!result.valid) throw new Error('Session was declined, expired, or revoked');
await qb.auth.signOut();Auth Methods
- qb.auth.createSession(options)
- qb.auth.waitForApproval(sessionId)
- qb.auth.verify()
- qb.auth.getSession()
- qb.auth.signOut()
- qb.auth.refreshSession()
- qb.auth.getUser()
- qb.auth.updateProfile(data)
- qb.auth.linkEmail(email)
- qb.auth.onAuthStateChange(cb)
Data Methods
- qb.from(collection).select(fields)
- qb.from(collection).insert(data)
- qb.from(collection).update(data)
- qb.from(collection).delete()
- .eq(field, value)
- .neq(field, value)
- .gt(field, value)
- .lt(field, value)
- .order(field, dir)
- .limit(count)
Beta access
The beta includes up to 1,000 approved sign-ins per month for a project. One approved sign-in counts as one authentication.
Paid plans are not on sale. Prices that previously appeared on this page are withdrawn until they match what the service actually bills.
Infrastructure charges inside a paired Quantum Follis vault, if the user is paying those, are separate and are shown in that app. They are not included in the 1,000 sign-ins.
Beta use is for evaluation. It is not a production support agreement.
Request a beta key
Sign in to the developer console to create a project, then follow the quick start above.