Skip to content

Neuctra Authix documentation

Neuctra Authix is a hosted API for authentication and user data. Your app gets sign-up, sign-in, sessions and JSON records owned by each user, so you can ship without writing or running a backend for them.

Start with your stack

Install an SDK

Official SDKs cover JavaScript and TypeScript, Python, and Dart and Flutter. Any language that can make HTTPS requests can call the API directly.

npm install @neuctra/authix

Sign in and save a record

Every SDK uses the same model: create one client, sign a user in, then read and write records that belong to that user.

1import { NeuctraAuthix } from "@neuctra/authix";
2
3const authix = new NeuctraAuthix({
4  appId: "YOUR_APP_ID",
5  apiKey: "pk_live_xxxxxxxx_xxxxxxxxxxxxxxxx",
6});
7
8// Signing in sets the session cookie.
9const { user } = await authix.loginUser({ email, password });
10
11// Saved against this user. No other user can read it.
12await authix.addUserData({
13  userId: user.id,
14  dataCategory: "notes",
15  data: { title: "First note" },
16});

What Authix handles

Authentication
Sign-up, sign-in, email verification and password resets, with sessions held in an HttpOnly cookie.
User data
JSON records owned by one user. This is the default home for anything a user creates, such as notes, carts and orders.
App data
Content you publish to every user, such as a catalogue or site config. Clients can read it, and only your server can write it.
Search across users
List and search every user and their records from your server, for admin screens and scheduled jobs.

Which API key goes where

Authix has two kinds of key. Choosing the right one is the most important decision in an integration.

Publishable key (pk_live_)Secret key (sk_live_)
Runs inBrowser and mobile codeYour server only
ReachesSign-in flows, app data reads, and the signed-in user's own account and recordsEvery user and record in your account, plus app data writes and roles
NeedsAllowed origins set on the app's Access tab when used from a browserAn environment variable, never a client bundle

Keep secret keys out of client code

Anything bundled for a browser or a mobile app is public. If a secret key has shipped in frontend code, revoke it and replace it. Read more in API keys.

Two ways to run Authix

Cloud mode

Install an SDK and connect to Neuctra Authix Cloud. It suits MVPs, SaaS products and internal tools.

Embedded server mode

Call Authix from your own backend and combine it with AI, payments, Redis or custom services.

SDK and component reference

Frequently asked questions

What is Neuctra Authix?

Neuctra Authix is a hosted authentication and user data platform. It handles signup, login, sessions, email verification and password resets, and stores JSON records scoped to each user, so an application can ship without writing or operating a backend.

Do I need my own backend to use Neuctra Authix?

Not for sign-in and each user's own data. Browser and mobile code use a publishable key (pk_live_), which reaches only sign-in flows, app data reads and the signed-in user's own account. Set your app's allowed origins before using it from a browser. Admin work, such as listing users, writing app data and setting roles, needs a secret key (sk_live_), which stays on a server you control.

Which languages and frameworks are supported?

There are official SDKs for JavaScript and TypeScript, Python, and Dart and Flutter, plus prebuilt React UI components. Any language that can make HTTPS requests can use the API directly.

How is user data kept private between users?

A publishable key is pinned to the signed-in user's session cookie: any user id the client passes is ignored, so one user cannot read another's records. A secret key can act on any user by id, which is why it stays on your server, and your server must take the user id from a session it has verified.