DocsStart hereAuthentication
Quick install
Keys and verification

Authentication

Connect your license key, know when verification succeeds or fails, and verify through your own backend when you need to.

Last updated

Your frameworkOne editor. Your stack.

Compatibility

Eddyter supports React 18.2+ and React 19.x. Works with Next.js, Vite, Remix, and any React setup.

How it works

Standard API key verification enables premium features and AI capabilities.

  1. 1Pass your API key to the apiKey prop on <ConfigurableEditorWithAuth>.
  2. 2Eddyter validates the key against our server.
  3. 3Features are enabled based on your subscription plan.
  4. 4onAuthSuccess fires when validation succeeds.
  5. 5onAuthError fires if validation fails.

Custom verification

Optional. Provide your own verification function if you need to validate keys through your backend.

components/Editor.tsx
<ConfigurableEditorWithAuth
  apiKey={apiKey}
  customVerifyKey={async (key) => {
    const response = await fetch('/api/verify-editor-key', {
      method: 'POST',
      body: JSON.stringify({ key })
    });
    const data = await response.json();
    return {
      success: data.valid,
      message: data.message
    };
  }}
/>