Skip to main content

Formal metadata support in Node.js SDK activation methods

I want to be able to add metadata to an activation using the Node.js SDK (e.g., in requestActivation()) to take advantage of advanced licensing analytics without having to use the endpoint workaround. This is important for tracking specific device or environment details like 'Is64Bit' directly in the activation flow.
Status: Completed1 comment

Log in to comment and vote

Comments1

  • Tobias Lønnerød Madsen changed status to Completed
    Team•

    May 13

    Pinned

    This is live with version 1.0.34 of the @moonbase.sh/licensing NPM package!

    const licensing = new MoonbaseLicensing({
      endpoint: 'https://demo.moonbase.sh',
      productId: 'demo-app',
      publicKey: process.env.MOONBASE_PUBLIC_KEY!,
      accountId: process.env.MOONBASE_ACCOUNT_ID,
    
      // Optional analytics reported with every activation and validation.
      appVersion: '1.2.3',
      metadata: {
        Host: 'Console',
        User: process.env.USER ?? '',
      },
    })