> For the complete documentation index, see [llms.txt](https://docs.locoia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.locoia.com/embed-white-label-portal/embed-admin-setup/2.-configure-embed/2.5-account-secrets.md).

# 2.5 Account Secrets

{% hint style="warning" %}
Only relevant for software where end users are able to see the source code which contains the JWT secret.
{% endhint %}

In on-premise software installations where users can access the source code, having secrets directly in the source code poses a security risk. For instance, if a user can view the code, they can extract the secret and potentially compromise the system by creating valid JWT tokens for other users, accessing data, and more.

With account secrets you can add a unique secret for each end account, tied to specific account ids. When a new account is added on the customer side, we generate a new secret for that account, associated with the account ID (`Account Foo`, `Account Bar` in the example below)

For cloud installations of the same sofware, the default secret token of the embed can be used.

<figure><img src="/files/ulHWQ48nnazjvoicYa5C" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.locoia.com/embed-white-label-portal/embed-admin-setup/2.-configure-embed/2.5-account-secrets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
