{"id":18491,"library":"linkhub","title":"LinkHub Node.js SDK","description":"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+.","status":"active","version":"1.8.2","language":"javascript","source_language":"en","source_url":"https://github.com/linkhub-sdk/node-linkhub","tags":["javascript","linkhub","sdk"],"install":[{"cmd":"npm install linkhub","lang":"bash","label":"npm"},{"cmd":"yarn add linkhub","lang":"bash","label":"yarn"},{"cmd":"pnpm add linkhub","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"CJS-only; ESM not supported.","wrong":"import LinkHub from 'linkhub';","symbol":"LinkHub","correct":"var LinkHub = require('linkhub');"},{"note":"The package exports a single class, not an object.","wrong":"const { LinkHub } = require('linkhub');","symbol":"linkhub","correct":"var linkhub = require('linkhub');"},{"note":"LinkHubType is a property on the main export.","wrong":"import { LinkHubType } from 'linkhub';","symbol":"LinkHubType","correct":"var LinkHubType = require('linkhub').LinkHubType;"}],"quickstart":{"code":"var LinkHub = require('linkhub');\nvar linkhub = new LinkHub({\n  linkID: process.env.LINK_ID || 'TESTER',\n  secretKey: process.env.SECRET_KEY || 'TESTER',\n  isTest: true\n});\nlinkhub.getToken(30, function(err, token) {\n  if (err) console.error(err);\n  else console.log('Token:', token);\n});","lang":"javascript","description":"Initialize LinkHub with credentials and obtain an access token."},"warnings":[{"fix":"Use require() instead of import.","message":"The SDK only supports CommonJS require, not ES modules.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Access via require('linkhub').LinkHubType.","message":"LinkHubType is not a separate export; it is a property of the main exported class.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use callback pattern; there is no promise support.","message":"getToken callback expects (err, token) arguments; token is not returned in promise.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install linkhub' and verify package.json.","cause":"Package not installed or typo in package name.","error":"Cannot find module 'linkhub'"},{"fix":"Use 'var LinkHub = require('linkhub');'.","cause":"Incorrect import style, e.g., using named import instead of default.","error":"LinkHub is not a constructor"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}