Registry / security / janus-mysql-auth

janus-mysql-auth

JSON →
library0.0.3jsnpmunverified

A plugin for janus-server that authenticates users against a MySQL database. Current version 0.0.3, stable but minimal release. Enables login verification for JanusVR server instances using MySQL credentials. Differentiates by offloading auth to MySQL rather than file-based or LDAP methods, but has no active maintenance or recent updates.

npm install janus-mysql-auth
INSTALL
IMPORT
SIG · JANUS-MYSQL-AUTH
J
janus-mysql-auth
securityjavascriptv0.0.3
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.

JanusMySQLAuth
const JanusMySQLAuth = require('janus-mysql-auth');
import JanusMySQLAuth from 'janus-mysql-auth';
This package is CommonJS only; no default export for ESM.

Initialize the MySQL auth plugin for janus-server using environment variables for credentials.

const JanusMySQLAuth = require('janus-mysql-auth'); const janusServer = require('janus-server'); const auth = new JanusMySQLAuth({ host: process.env.MYSQL_HOST || 'localhost', user: process.env.MYSQL_USER || 'root', password: process.env.MYSQL_PASSWORD || '', database: process.env.MYSQL_DATABASE || 'janus_auth' }); janusServer.use(auth);
Debug
Known issues
gotchaPlugin expects janus-server instance; may not work with forks or non-standard server setups.
fix
Ensure janus-server is v0.x and integrated correctly.
affects: >=0.0.1
deprecatedPackage has not been updated since initial release; may lack security patches.
fix
Consider forking and maintaining, or use alternative auth.
affects: >=0.0.3
Errors
Common errors & fixes
Error: Cannot find module 'mysql'
Missing dependency 'mysql'
fix
npm install mysql
TypeError: JanusMySQLAuth is not a constructor
Incorrect import method (ESM import used for CJS module).
fix
Use require() instead of import.
Upgrade
Version history
0.0.3latest on npm
Audit
Dependencies
janus-serverrequiredRequired as the host JanusVR server plugin system.
mysqlrequiredMySQL client driver for database connection.
Agent activity
17 hits · last 30 days
node
16
Resources
janus-mysql-auth — npm install janus-mysql-auth · libregistry