Skip to content

Commit 0b5ec06

Browse files
author
Eiman Eltigani
committed
add new env variable to sample files
1 parent 152fad6 commit 0b5ec06

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

.env.sample.euid

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ SESSION_KEY="your-session-key-here"
1919
# Client-Side Token Generation (CSTG) - Provided by your EUID integration representative
2020
UID_CSTG_SERVER_PUBLIC_KEY="your-euid-server-public-key"
2121
UID_CSTG_SUBSCRIPTION_ID="your-euid-subscription-id"
22+
UID_CSTG_ORIGIN="your-app-url.com" # The public URL where this application is deployed (e.g., https://your-domain.com or http://localhost:3034 for local dev)
2223

2324
# React Client-Side Examples - Provided by your EUID integration representative
2425
# Note: These are the same values as the variables above, prefixed with REACT_APP_

.env.sample.uid2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ SESSION_KEY="your-session-key-here"
1919
# Client-Side Token Generation (CSTG)
2020
UID_CSTG_SERVER_PUBLIC_KEY="UID2-X-I-MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEo+jcPlk8GWn3iG0R5Il2cbFQI9hR3TvHxaBUKHl5Vh+ugr+9uLMiXihka8To07ETFGghEifY96Hrpe5RnYko7Q=="
2121
UID_CSTG_SUBSCRIPTION_ID="DMr7uHxqLU"
22+
UID_CSTG_ORIGIN="your-app-url.com" # The public URL where this application is deployed (e.g., https://your-domain.com or http://localhost:3034 for local dev)
2223

2324
# React Client-Side Examples
2425
# Note: These are the same values as the variables above, prefixed with REACT_APP_

web-integrations/javascript-sdk/server-side-node/README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,9 @@ The following table lists the environment variables that you must specify to sta
6262
| `UID_SERVER_BASE_URL` | The base URL of the UID2/EUID service. For details, see [Environments](https://unifiedid.com/docs/getting-started/gs-environments) (UID2) or [Environments](https://euid.eu/docs/getting-started/gs-environments) (EUID). | UID2: `https://operator-integ.uidapi.com`<br/>EUID: `https://integ.euid.eu/v2` |
6363
| `UID_CSTG_SUBSCRIPTION_ID` | Your UID2/EUID subscription ID for Client-Side Token Generation. **These are public credentials.** | Your assigned subscription ID (e.g., `DMr7uHxqLU`) |
6464
| `UID_CSTG_SERVER_PUBLIC_KEY` | Your UID2/EUID server public key for Client-Side Token Generation. **These are public credentials.** | Your assigned public key |
65+
| `UID_CSTG_ORIGIN` | The public URL where this application is deployed. Must match your CSTG subscription's allowed origins. | `https://your-domain.com` (production)<br/>`http://localhost:3034` (local dev default) |
6566
| `SESSION_KEY` | Used by the cookie-session middleware to encrypt the session data stored in cookies. | Any secure random string |
6667

67-
### Optional Configuration
68-
69-
| Variable | Description | Example Values |
70-
|:---------|:------------|:---------------|
71-
| `UID_CSTG_ORIGIN` | The public URL where this application is deployed. Must match your CSTG subscription's allowed origins. Defaults to `http://localhost:PORT`. | `https://your-domain.com` (production)<br/>`http://localhost:3034` (default) |
72-
| `PORT` | Port number for the server | `3034` (default) |
73-
74-
> **⚠️ Important**: Your CSTG subscription must be configured with an allowed origin that matches where your application is deployed. For production deployments, set `UID_CSTG_ORIGIN` to your application's public URL (e.g., `https://your-domain.com`). For local development, it automatically defaults to `http://localhost:PORT`.
75-
7668
### Display/UI Configuration
7769

7870
| Variable | Description | Example Values |

0 commit comments

Comments
 (0)