Skip to content

Why @rybbit/node requires apiKey? #686

@vitonsky

Description

@vitonsky

I want track events in Electron app. Events must be tracked in both - main process and in renderer.

I have API for that on main process side that have node environment.

The docs says about @rybbit/node:

The Rybbit constructor will throw an error if required configuration options (analyticsHost, siteId, apiKey) are missing or invalid.

Why I should pass a secret API key for @rybbit/node?

In case i would do that, user could find and use this secret API key. Because it is client side desktop app.

Meanwhile @rybbit/js do not require API key and still can send requests. But this package is expects a Browser environment as i understood, so it would not work in main process.

Is there problem with docs or a logical bug?

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