{"_id":"@alipay/openclaw-lhh","_rev":"3-c39709ac7d38dc5b36cd846a73279f74","name":"@alipay/openclaw-lhh","dist-tags":{"latest":"2.0.1"},"versions":{"0.0.0":{"name":"@alipay/openclaw-lhh","version":"0.0.0","keywords":[],"author":"","_id":"@alipay/openclaw-lhh@0.0.0","maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxkl","email":"gxkl203@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"elrrrrrrr","email":"elrrrrrrr@gmail.com"},{"name":"pub_alipay_npm","email":"pub_alipay_npm@antgroup-inc.com"}],"dist":{"shasum":"431477dea4cf67842ce191eb1e152907cc24a41c","tarball":"https://registry.npmjs.org/@alipay/openclaw-lhh/-/openclaw-lhh-0.0.0.tgz","fileCount":1,"integrity":"sha512-BnZQQxFqbIL+moHfPjJQovD9F3NzoP66C7fjL3DsGTCf9j/dPXzEbW+ip4nNoCUNUpVmZh17U7QhJ4ZF9TOZYw==","signatures":[{"sig":"MEUCIE+xYij3otx2LbITWU2eCdBnXU9WxNfJrAcggeqoCRBZAiEAkdQJreBplhd5q88vsEb5PUwxF/jdmbC6qb0KOANtPIw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":214},"_npmUser":{"name":"elrrrrrrr","email":"elrrrrrrr@gmail.com"},"_npmVersion":"10.9.3","description":"TODO","directories":{},"_nodeVersion":"22.18.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/openclaw-lhh_0.0.0_1777258022198_0.7461957638518371","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@alipay/openclaw-lhh","version":"2.0.0","author":{"name":"antgroup"},"license":"MIT","_id":"@alipay/openclaw-lhh@2.0.0","maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxkl","email":"gxkl203@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"elrrrrrrr","email":"elrrrrrrr@gmail.com"},{"name":"pub_alipay_npm","email":"pub_alipay_npm@antgroup-inc.com"}],"dist":{"shasum":"a55492d0a143ebd27b7f59e2b48ce41b73760773","tarball":"https://registry.npmjs.org/@alipay/openclaw-lhh/-/openclaw-lhh-2.0.0.tgz","fileCount":16,"integrity":"sha512-U2T1JiiCNydgI96ga1ugoZPGL5Rh3u91tnjbE+RcZkw2qVZ7VVwQK2iABoSiPRxJX13GkmQNitbTxaFtmEr+dg==","signatures":[{"sig":"MEUCIQCI1eN9Wg4d8FVciLAL0xqaaUxe9OoWLaVmrGN0Y6nZWwIgPA/0unpCUHVWVNHuxulwKXDLi0FmqkF075+jBXG4GR0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":83614},"type":"module","engines":{"node":">=22"},"exports":{".":"./src/index.ts","./package.json":"./package.json"},"gitHead":"6d52c636d6b31fbce5b598746467afd74059dc18","scripts":{"lint":"eslint src test --ext .ts","typecheck":"tsc --noEmit"},"_npmUser":{"name":"pub_alipay_npm","email":"pub_alipay_npm@antgroup-inc.com"},"openclaw":{"channel":{"id":"openclaw-lhh","blurb":"LHH device QR code authentication","label":"openclaw-lhh","order":80,"docsPath":"/channels/openclaw-lhh","docsLabel":"openclaw-lhh","selectionLabel":"openclaw-lhh (QR Auth)"},"install":{"npmSpec":"@alipay/openclaw-lhh","defaultChoice":"npm"},"extensions":["./index.ts"]},"repository":{"url":"https://code.alipay.com/loanprod/openclaw-lhh","type":"git"},"_npmVersion":"11.9.0","description":"LHH device QR code authentication for OpenClaw","directories":{},"_nodeVersion":"24.14.0","dependencies":{"qrcode-terminal":"^0.12.0","@sinclair/typebox":"^0.34.49"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.49.0","openclaw":"2026.3.23","typescript":"^5.2.2","@types/qrcode-terminal":"^0.12.2"},"_npmOperationalInternal":{"tmp":"tmp/openclaw-lhh_2.0.0_1777288879509_0.30620055633316","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@alipay/openclaw-lhh","version":"2.0.1","description":"LHH device QR code authentication for OpenClaw","license":"MIT","author":{"name":"antgroup"},"type":"module","scripts":{"lint":"eslint src test --ext .ts","typecheck":"tsc --noEmit"},"engines":{"node":">=22"},"repository":{"type":"git"},"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"dependencies":{"@sinclair/typebox":"^0.34.49","qrcode-terminal":"^0.12.0"},"devDependencies":{"@types/qrcode-terminal":"^0.12.2","eslint":"^8.49.0","openclaw":"2026.3.23","typescript":"^5.2.2"},"openclaw":{"extensions":["./index.ts"],"channel":{"id":"openclaw-lhh","label":"openclaw-lhh","selectionLabel":"openclaw-lhh (QR Auth)","docsPath":"/channels/openclaw-lhh","docsLabel":"openclaw-lhh","blurb":"LHH device QR code authentication","order":80},"install":{"npmSpec":"@alipay/openclaw-lhh","defaultChoice":"npm"}},"exports":{"./package.json":"./package.json",".":"./src/index.ts"},"gitHead":"68cdc11350409418e729670aaf2462fea24c5c21","_id":"@alipay/openclaw-lhh@2.0.1","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-dHc00kNsvQUL3JO607LSoRXMjlJWv5tba9B6iyJOwBKDCKqKjl36Xmr2CMdEgF9eocoHJSUyg/wEuEZ/+4hTQA==","shasum":"90a67b9be7605819937fe2226fe143a560441662","tarball":"https://registry.npmjs.org/@alipay/openclaw-lhh/-/openclaw-lhh-2.0.1.tgz","fileCount":16,"unpackedSize":83480,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCRyV6UBWzFTiz58VHpjd9QtyNUkno9XNgFU80zvJbJHgIgfQQFVvN5xYBZ5p6IrAv1AB+hhVwrB2bWg2PjrJ8CC0w="}]},"_npmUser":{"name":"pub_alipay_npm","email":"pub_alipay_npm@antgroup-inc.com"},"directories":{},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxkl","email":"gxkl203@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"elrrrrrrr","email":"elrrrrrrr@gmail.com"},{"name":"pub_alipay_npm","email":"pub_alipay_npm@antgroup-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/openclaw-lhh_2.0.1_1777289589678_0.3120260165244928"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-27T02:47:02.102Z","modified":"2026-04-27T11:33:10.009Z","0.0.0":"2026-04-27T02:47:02.334Z","2.0.0":"2026-04-27T11:21:19.645Z","2.0.1":"2026-04-27T11:33:09.812Z"},"author":{"name":"antgroup"},"license":"MIT","repository":{"type":"git"},"description":"LHH device QR code authentication for OpenClaw","maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxkl","email":"gxkl203@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"elrrrrrrr","email":"elrrrrrrr@gmail.com"},{"name":"pub_alipay_npm","email":"pub_alipay_npm@antgroup-inc.com"}],"readme":"# @alipay/openclaw-lhh\n\n花呗蓝花火龙虾社区\n\n## 安装&使用\n\n```bash\nnpx -y @alipay/openclaw-lhh-cli@latest install\n```\n\n## 鉴权流程\n\n1. 调用接口A获取二维码和 pollCode\n2. 轮询接口B等待用户扫码\n3. 用户扫码绑定后返回 token\n4. token 用于调用后续龙社区接口\n5. refreshToken 用于刷新过期 token\n\n## 编程方式\n\n```typescript\nimport { createLhhClient, loginWithQr, saveToken } from '@alipay/openclaw-lhh';\n\nconst client = createLhhClient({\n  baseUrl: 'https://webgw-internet.alipay.com',\n});\n\nconst result = await loginWithQr({\n  client,\n  onQrReady: (url) => console.log('扫码:', url),\n});\n\nif (result.connected) {\n  saveToken('my-device', {\n    accessToken: result.accessToken!,\n    refreshToken: result.refreshToken,\n  });\n}\n```\n\n## License\n\nMIT","readmeFilename":"README.md"}