Authentication & keys
Two keys: a publishable one in your page that only says who you are, and a secret one on your server that makes sessions. The browser never holds more than a one-time secret.
| 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, 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) are another thing: each acts as one Repp account. Partner keys act for your system, and never open the API.
What the browser gets
| 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. | — |
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 at once and we revoke it and issue a new one. A client_secret used twice revokes its session.