# Your identity secret (https://notert.io/docs/signed-in-users/identity-secret)

Last updated 2026-11-27

Your workspace has one identity secret, made with the workspace. Your server signs each user's token with it, and Notert checks every token against it. Owners and admins copy it and revoke it.

## Copy it [#copy-it]

<Steps>
1. Open <Key>Settings</Key>, then <Key to="settings/api">MCP & API</Key>, and find Identity secret under Secrets.
2. Press the secret to copy it.
3. Put it on your server, such as in an environment variable named `NOTERT_IDENTITY_SECRET`.
</Steps>

The widget's install guide shows the same secret as the first step of its Signed-in users tab, where a press on it copies it too.

<Screenshot name="install-guide-signed-in-users" alt="The widget's install guide on its Signed-in users tab: the AI prompt with Copy prompt, step 1 Copy your secret with the secret and the line to revoke it under Secrets on MCP & API, and step 2 Choose what you send, with the details to tick such as picture and language" />

Members who aren't an owner or an admin see only its start and its last four characters, such as `nis_…a1b2`, so they can match it to the one on your server, and the line that owners and admins can copy it.

## Keep it on your server [#keep-it-on-your-server]

Anyone holding the secret can sign a token for any of your users, and read and write their conversations. Keep it where your other server secrets live: never in your page, your front-end code, or your repository.

Locally, put it in a file your repository ignores:

```sh
# .env.local, listed in .gitignore
NOTERT_IDENTITY_SECRET=nis_...
```

In production, add it as a secret environment variable on your hosting platform, and read it on the server only. In a framework that sends some variables to the browser, such as Next.js with its `NEXT_PUBLIC_` prefix, never give the secret such a name.

## Revoke it [#revoke-it]

Revoke the secret if it may have leaked.

<Steps>
1. Under Secrets on <Key to="settings/api">MCP & API</Key>, press <Key>Revoke secret</Key>.
2. Press <Key>Revoke</Key> to confirm.
3. Copy the new secret and put it on your server in place of the old one.
</Steps>

The old secret stops at once: until your server signs with the new one, its tokens are refused and the widget stays hidden for your signed-in users. Everyone your site signed in on [your board](/docs/signed-in-users/board-sign-in) is signed out too, since a secret that leaked signed them in. They sign in again through your site the next time they come. Visitors who aren't signed in aren't affected. A revoke can't be undone.

The Signed-in users tab's Check it works waits again until a page signed with the new secret loads the widget.

If a teammate revokes the secret a moment before you, your revoke changes nothing and Notert says the identity secret was just revoked, and the page shows their new secret. Copy it rather than revoking again, which would stop theirs.

Each revoke is recorded in the [audit log](/support/workspace/audit-log), and the workspace's owners are emailed about it.