@cntm-labs/nucleus-js
v0.3.0
Published
Nucleus authentication SDK for JavaScript.
Downloads
181
Maintainers
Readme
@cntm-labs/nucleus-js
Nucleus authentication SDK for vanilla JavaScript.
Warning: DEV PREVIEW — This package is under active development and is NOT ready for production use. APIs may change without notice. For updates, watch the Nucleus repo.
Manage sessions and user state in any browser environment.
Part of Nucleus — high-performance, self-hosted auth platform.
Installation
npm i @cntm-labs/nucleus-jsQuick Start
import { Nucleus } from '@cntm-labs/nucleus-js';
const nucleus = new Nucleus({ publishableKey: 'pk_...' });
const session = await nucleus.getSession();
console.log('User:', session.userId);