Skip to content
TesseraDocs
MenuYour first sign-in

Your first sign-in

This page takes you from a Tessera invite to a working sign-in in your own app.

View as Markdown

On this page

This page takes you from a Tessera invite to a working sign-in in your own app.

The goal is about five minutes. That is a target, not a measured figure, and it does not include setting up your own domain, which is optional and comes later.

1. Accept the invite

The Tessera team sends you an email with an invitation link. It is valid for 7 days. Open it on the computer you build on.

  1. The link shows a page that names the workspace and who invited you. Nothing happens until you press Accept invitation. A mail scanner that opens the link cannot use it up, because only the button consumes it.
  2. Tessera creates your account and signs you in to the console. There is no password. On the welcome page you can add a passkey, which is the best way to sign in next time. If you skip it, you can sign in later with a code or link sent to your email. The link only works in the browser where you asked for it; on another device, type the code from the same email.

You will see: the console welcome page, signed in as you. The console lives at https://platform.kurthlabs.com.

Planned. The accept page does not yet show the early-access agreement checkbox, and it does not yet take on the look of your own brand at invite time. It uses Tessera's look. (Importing a brand from your site works for your realm and apps from the command line once you are in: see themes.)

2. Create your first realm

The console home shows a short checklist. The first step is a realm, which is one set of users and apps (see realms).

  • What are you building? The name your users will see. Tessera derives the realm address from it. You can change the name later, not the address.
  • Who can sign up? The form offers "Only people I invite" and "Anyone". A realm created in the console always starts invite-only, so people can only join through an invite (see invites).

Realms created in the console use passwordless sign-in: a passkey, or a link sent to the person's email.

You will see: the realm on the console home, with the checklist moving on to the next step.

3. Connect an app

Pick one of these:

  • Tell a coding agent to do it. See tell your agent.
  • Run tessera init yourself in the project folder. It registers the app, writes .env.local and prints the code for your stack. Afterwards tessera doctor checks the whole round trip: discovery, the keys, the redirect URIs and, where a test persona exists, a token.
  • Follow a quickstart: Next.js, SvelteKit, Express, Go or Python.

You can also add the app in the console. Choose your stack and where the app runs, and the console creates it and shows the issuer, client id and redirect URI with a copy button each, the client secret once (copy it or download a .env file), and the code for your stack with your real values in it.

While you wire the app, the app page shows what Tessera sees from it as it happens:

  1. The discovery fetch and each sign-in request.
  2. A redirect URI that does not match, with a button to allow the exact address when it is a local one.
  3. The token exchange. Each failure comes with its error code and fix.
  4. When your app receives its tokens, the step finishes.

You will see: a "You're live" receipt with the measured time to your first sign-in, how long each step took, and which checks were verified (discovery, the redirect, the token's signature, roles) and which were not checked yet.

Planned. The console does not yet show a pairing code you can hand to a coding agent. Today a realm administrator makes one on the command line with tessera pairing create (see tell your agent). The receipt also measures from your first console sign-in, because the time you opened the invite is not recorded yet.

4. Try the sign-in your users will see

Once an app exists, the app page has a "Test sign-in" button that runs the real sign-in: your realm's hosted sign-in page, then back to the console with what your app would receive (the subject, email, roles and permissions, and whether the token's signature checks out). A new realm has no end users yet, so invite yourself first under Members in the console, open the invite, then run the test. The test link works once and for ten minutes.

You will see: a test page that shows the subject, email and roles, and whether the signature checks out.

Then start your app and sign in from the app too. If the app redirects to Tessera and comes back signed in, you are done. If something fails, the error has a code: look it up in the error catalogue.

If it did not work

  • Redirect URI mismatch. The app page shows the address your app sent. Copy the exact address from the error into the app's redirect URIs and try again.
  • Wrong issuer. The issuer in the discovery document must equal the issuer your app is configured with (TESSERA_ISSUER in the generated .env.local), with no trailing slash.
  • Settings not loaded. tessera init writes .env.local. Restart your dev server after it runs, or the app keeps the old values.

What next