Registry / auth-security / linkhub

linkhub

JSON →
library1.6.0jsnpmunverified

Node.js SDK for LinkHub authentication modules, version 1.8.2, released infrequently. Provides access to LinkHub's API for Korean electronic document and authentication services. Differentiator: official SDK for the LinkHub platform used in South Korea. Supports Node.js 0.10+.

npm install linkhub
INSTALL
IMPORT
SIG · LINKHUB
L
linkhub
auth-securityjavascriptv1.6.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

LinkHub
var LinkHub = require('linkhub');
import LinkHub from 'linkhub';
CJS-only; ESM not supported.
linkhub
var linkhub = require('linkhub');
const { LinkHub } = require('linkhub');
The package exports a single class, not an object.
LinkHubType
var LinkHubType = require('linkhub').LinkHubType;
import { LinkHubType } from 'linkhub';
LinkHubType is a property on the main export.

Initialize LinkHub with credentials and obtain an access token.

var LinkHub = require('linkhub'); var linkhub = new LinkHub({ linkID: process.env.LINK_ID || 'TESTER', secretKey: process.env.SECRET_KEY || 'TESTER', isTest: true }); linkhub.getToken(30, function(err, token) { if (err) console.error(err); else console.log('Token:', token); });
Debug
Known issues
gotchaThe SDK only supports CommonJS require, not ES modules.
fix
Use require() instead of import.
affects: >=1.0.0
gotchaLinkHubType is not a separate export; it is a property of the main exported class.
fix
Access via require('linkhub').LinkHubType.
affects: >=1.0.0
gotchagetToken callback expects (err, token) arguments; token is not returned in promise.
fix
Use callback pattern; there is no promise support.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'linkhub'
Package not installed or typo in package name.
fix
Run 'npm install linkhub' and verify package.json.
LinkHub is not a constructor
Incorrect import style, e.g., using named import instead of default.
fix
Use 'var LinkHub = require('linkhub');'.
Upgrade
Version history
1.6.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
9
OpenAI (training)
1
Resources
linkhub — npm install linkhub · libregistry