Skip to content

Issues on the doc - <Inbox/> Headless Tab #817

Open
@Anishpras

Description

@Anishpras

Hi Novu Team,

I noticed that the current documentation for the @novu/js package still references the use of an apiKey when initializing the Novu instance:

import { Novu } from "@novu/js";

const novu = new Novu({
  apiKey: 'YOUR_API_KEY',
});

However, this no longer seems to work, as the apiKey property is not recognized or used by the latest version of the SDK. The correct initialization method appears to be:

import { Novu } from "@novu/js";

export const novu = new Novu({
  applicationIdentifier: '',
  subscriberId: '',
});

To help avoid confusion for other developers, I recommend updating the documentation to reflect this change. I’m happy to contribute by submitting a PR to update the docs if that would be helpful.

Let me know how you’d like to proceed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions