Skip to content
Indiana
Dashboard
Docs
Browse docs / Developer documentation

Developer documentation

Connect customer identity, entitlements, monetization and growth flows to your Web app.

SDK 0.0.1Updated Web Beta

Start building

Use Indiana CLI: browser approval, App queries and local document toolsCheck published SDK and current-source compatibility
IDENTITY → ACCESS

One customer. One verified identity.

Your backend maps your signed-in user to an Indiana customer. The browser receives a short-lived customer token and reads that customer’s access.

  1. 1
    Identify on your server

    Use the verified user ID from your login session.

  2. 2
    Connect in the browser

    A customer token carries only that customer’s identity.

  3. 3
    Present access and upgrades

    Published plans and surfaces determine the experience.

View complete example
server/identify.tsTypeScript
import { createGrooveServer } from "@tinkerlandai/indiana-sdk/server"; const groove = createGrooveServer({  baseUrl: process.env.GROOVE_BASE_URL!,  apiKey: process.env.GROOVE_SECRET_KEY!,  scope: {    projectId: process.env.GROOVE_PROJECT_ID!,    environment: "sandbox",  },});const { customer } = await groove.getOrCreateCustomer({  externalUserId: verifiedUser.id,});const session = await groove.createCustomerSession(customer.id);

Server key stays on your backend. Replace the placeholder config and supply your own authenticated user.

Build by use case