> Documentation index: https://docs.dev.repp.co.il/llms.txt - fetch it to find every page of these docs.

# Authentication & keys

**Keys**

| Key | Where | What it does |
| --- | --- | --- |
| `rpk_test_…` / `rpk_live_…` | Your page | Says which partner the page is. Decides which origins may show Repp's frames. Gives no access to anything. |
| `rsk_test_…` / `rsk_live_…` | Your server only | Makes [sessions](https://docs.dev.repp.co.il/partners-sessions.md), sent as `Authorization: Bearer rsk_…`. Repp keeps only its SHA-256 fingerprint. |

## Test and live

- **Test keys** (`_test_`) also allow your pages on your own machine (`http://localhost`, any port), beside the origins you registered.
- **Live keys** (`_live_`) allow only the https origins you registered. They are not issued yet: Repp Embed is in early access.
- Repp's own API keys (`repp_…`, see [Authentication](https://docs.dev.repp.co.il/authentication.md)) are another thing: each acts as one Repp account. Partner keys act for your system, and never open the API.

## What the browser gets

**Secrets in the browser**

| Step | What | Lasts |
| --- | --- | --- |
| `client_secret` | Your server hands it to your page; the SDK passes it to Repp's frame over a private `MessageChannel`, never in an address. | 5 minutes, one use |
| Token | The frame trades the secret for it, keeps it in its own memory only, and sends it to Repp as a bearer token. | 2 hours |
| A new session | When a token runs out, or the frame reloads, the SDK calls your `fetchClientSecret` again. | — |

> **Warning:** Keep the secret key on your server - never in a page, an app or a Git repository. Keys are issued by Repp over a secure channel; if one may have leaked, [tell us](https://dev.repp.co.il/help) at once and we revoke it and issue a new one. A `client_secret` used twice revokes its session.
