JWT authentication and MySQL connection library. Current version 3.0.1. Provides simple functions to authenticate users against a MySQL database using bcryptjs for password hashing and jsonwebtoken for token generation. Offers configurable table/field names and optional JWT validation. Lightweight but limited in flexibility and error handling. Suitable for small projects needing basic auth with MySQL.
npm install bdt105connexionNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize Connexion with MySQL and JWT config, then execute a raw SQL query.
Ensure salt matches bcryptjs format exactly.
Provide both configs if you need full auth functionality.
Use (err, data) => {...}.Consider switching to mysql2 for better performance and features.
Run: npm install bdt105connexion --save
Use a bcryptjs-compatible salt, e.g., '$2a$10$abcdefghijklmnopqrstuv' (22 chars after prefix).
Ensure both configs are created with new keyword and passed to Connexion constructor.