Registry / security / usr
library0.0.1jsnpmunverified

An early-stage REST OAuth webservice for user authentication and group management, version 0.0.1. Designed to be deployed on Cloud Foundry with a REST API supporting multiple authentication providers (EveryAuth) and pluggable storage (MongoDB, CouchDB, MySQL). Currently in pre-release with limited working features including local storage, socket.io events, token-based authentication (to be replaced by OAuth2), and basic group management. Intended as a centralized auth service for multiple applications.

npm install usr
INSTALL
IMPORT
SIG · USR
U
usr
securityjavascriptv0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

server
import { createServer } from 'usr'
const usr = require('usr'); const server = usr.createServer()
ESM-only export; no CommonJS support.
User
import { User } from 'usr'
import User from 'usr'
User is a named export, not default.
authenticate
import { authenticate } from 'usr'
const authenticate = require('usr').authenticate
ESM-only; require() will fail.

Shows how to create and start a usr server with local storage.

import { createServer } from 'usr'; const app = createServer({ port: 3000, storage: 'local', secret: process.env.SECRET ?? 'changeme' }); app.on('listening', () => { console.log('usr server running on port 3000'); }); app.listen();
Debug
Known issues
deprecatedPackage is unmaintained and in very early alpha; not suitable for production.
fix
Use a mature alternative like Ory Hydra, Keycloak, or Auth0.
affects: *
gotchaToken authentication is not OAuth2 compliant and will be replaced.
fix
Do not rely on token auth for security; wait for OAuth2 release or use another library.
affects: 0.0.1
gotchaDocumentation is outdated and features may not work as described.
fix
Check the source code for actual implementation.
affects: 0.0.1
Errors
Common errors & fixes
Error: Cannot find module 'usr'
Package is not installed or version not specified in package.json
fix
npm install usr@0.0.1
TypeError: createServer is not a function
Using incorrect import pattern (e.g., default import instead of named import)
fix
Use import { createServer } from 'usr';
Upgrade
Version history
0.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
26
Resources
packageusr
usr — npm install usr · libregistry