Package Exports
- @lit-protocol/lit-node-client-nodejs
- @lit-protocol/lit-node-client-nodejs/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@lit-protocol/lit-node-client-nodejs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Getting Started
This package provides a Node.js-specific implementation of the Lit Protocol client, enabling server-side applications to interact with the Lit network. It offers optimized Node.js performance while maintaining all core Lit Protocol functionality, excluding browser-specific authentication which can be manually added if needed.
import * as LitJsSdkNodeJs from '@lit-protocol/lit-node-client-nodejs';
import { checkAndSignAuthMessage } from '@lit-protocol/auth-browser';
const client = new LitJsSdkNodeJs.LitNodeClientNodeJs({
litNetwork: 'serrano',
defaultAuthCallback: checkAndSignAuthMessage,
});
await client.connect();
const authSig = await checkAndSignAuthMessage({
chain: 'ethereum',
});