stackure
v1.20261013.24
Published
Stackure for Node.js: passwordless auth for B2B apps as Express and Connect middleware. Zero dependencies.
Maintainers
Readme
Stackure JavaScript SDK
Stackure is passwordless auth for B2B apps. This SDK adds it to a Node.js app as Express or Connect middleware, with zero dependencies.
Install
npm install stackureNeeds Node.js 22 or later. ESM only.
Quickstart
Set STACKURE_APP_ID and STACKURE_APP_SECRET from the app's page in Stackure, then:
import express from 'express';
import { auth, userFromRequest } from 'stackure';
const app = express();
app.use(auth());
app.get('/', (req, res) => res.json(userFromRequest(req)));
app.listen(3000);Docs
- Guide and reference: stackure.com/docs/javascript
- For AI agents: stackure.com/llms.txt
License
MIT
