Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samples/browser/quickstart/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Base URL of your ThunderID deployment (org tenant).
# Base URL of your ThunderID deployment. ex: https://localhost:8090
VITE_THUNDERID_BASE_URL=https://localhost:8090

# OAuth2 Client ID for this app. ThunderID Console -> your application -> Overview.
Expand Down
7 changes: 4 additions & 3 deletions samples/browser/quickstart/scripts/prepare-dev.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ const root = path.join(__dirname, '..');
const envExample = path.join(root, '.env.example');
const envTarget = path.join(root, '.env');
if (fs.existsSync(envExample) && !fs.existsSync(envTarget)) {
// Blank placeholder values (e.g. `your-client-id-here`) so the copied .env
// still trips the app's missing-env-var check until real values are filled in.
// Blank placeholder values (e.g. `your-client-id-here`, the sample base URL)
// so the copied .env still trips the app's missing-env-var check until real
// values are filled in.
const envContent = fs
.readFileSync(envExample, 'utf8')
.replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*)$/gm, '$1=');
.replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*|https:\/\/localhost:8090)$/gm, '$1=');
fs.writeFileSync(envTarget, envContent);
}

Expand Down
2 changes: 1 addition & 1 deletion samples/express/quickstart/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Base URL of your ThunderID deployment (org tenant).
# Base URL of your ThunderID deployment. ex: https://localhost:8090
THUNDERID_BASE_URL=https://localhost:8090

# OAuth2 Client ID for this app. ThunderID Console -> your application -> Overview.
Expand Down
7 changes: 4 additions & 3 deletions samples/express/quickstart/scripts/prepare-dev.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ const root = path.join(__dirname, '..');
const envExample = path.join(root, '.env.example');
const envTarget = path.join(root, '.env');
if (fs.existsSync(envExample) && !fs.existsSync(envTarget)) {
// Blank placeholder values (e.g. `your-client-id-here`) so the copied .env
// still trips the app's missing-env-var check until real values are filled in.
// Blank placeholder values (e.g. `your-client-id-here`, the sample base URL)
// so the copied .env still trips the app's missing-env-var check until real
// values are filled in.
const envContent = fs
.readFileSync(envExample, 'utf8')
.replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*)$/gm, '$1=');
.replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*|https:\/\/localhost:8090)$/gm, '$1=');
fs.writeFileSync(envTarget, envContent);
}

Expand Down
2 changes: 1 addition & 1 deletion samples/nextjs/quickstart/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Base URL of your ThunderID deployment (org tenant).
# Base URL of your ThunderID deployment. ex: https://localhost:8090
NEXT_PUBLIC_THUNDERID_BASE_URL=https://localhost:8090

# OAuth2 Client Secret for this app. Shown once when the application is created;
Expand Down
7 changes: 4 additions & 3 deletions samples/nextjs/quickstart/scripts/prepare-dev.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ const envTarget = path.join(root, '.env');
if (fs.existsSync(envExample) && (flowExplicitlyRequested || !fs.existsSync(envTarget))) {
const envSource = fs.existsSync(envTarget) ? envTarget : envExample;
const envContent = applyFlow(fs.readFileSync(envSource, 'utf8'), flow)
// Blank placeholder values (e.g. `your-client-id-here`) so the copied .env
// still trips the app's missing-env-var check until real values are filled in.
.replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*)$/gm, '$1=');
// Blank placeholder values (e.g. `your-client-id-here`, the sample base URL)
// so the copied .env still trips the app's missing-env-var check until real
// values are filled in.
.replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*|https:\/\/localhost:8090)$/gm, '$1=');
fs.writeFileSync(envTarget, envContent);
}

Expand Down
2 changes: 1 addition & 1 deletion samples/node/quickstart/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Base URL of your ThunderID deployment (org tenant).
# Base URL of your ThunderID deployment. ex: https://localhost:8090
THUNDERID_BASE_URL=https://localhost:8090

# OAuth2 Client ID for this service. ThunderID Console -> your application -> Overview.
Expand Down
7 changes: 4 additions & 3 deletions samples/node/quickstart/scripts/prepare-dev.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ const root = path.join(__dirname, '..');
const envExample = path.join(root, '.env.example');
const envTarget = path.join(root, '.env');
if (fs.existsSync(envExample) && !fs.existsSync(envTarget)) {
// Blank placeholder values (e.g. `your-client-id-here`) so the copied .env
// still trips the app's missing-env-var check until real values are filled in.
// Blank placeholder values (e.g. `your-client-id-here`, the sample base URL)
// so the copied .env still trips the app's missing-env-var check until real
// values are filled in.
const envContent = fs
.readFileSync(envExample, 'utf8')
.replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*)$/gm, '$1=');
.replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*|https:\/\/localhost:8090)$/gm, '$1=');
fs.writeFileSync(envTarget, envContent);
}

Expand Down
2 changes: 1 addition & 1 deletion samples/nuxt/quickstart/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Base URL of your ThunderID deployment (org tenant).
# Base URL of your ThunderID deployment. ex: https://localhost:8090
NUXT_PUBLIC_THUNDERID_BASE_URL=https://localhost:8090

# OAuth2 Client Secret for this app. Shown once when the application is created;
Expand Down
7 changes: 4 additions & 3 deletions samples/nuxt/quickstart/scripts/prepare-dev.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ const envTarget = path.join(root, '.env');
if (fs.existsSync(envExample) && (flowExplicitlyRequested || !fs.existsSync(envTarget))) {
const envSource = fs.existsSync(envTarget) ? envTarget : envExample;
const envContent = applyFlow(fs.readFileSync(envSource, 'utf8'), flow)
// Blank placeholder values (e.g. `your-client-id-here`) so the copied .env
// still trips the app's missing-env-var check until real values are filled in.
.replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*)$/gm, '$1=');
// Blank placeholder values (e.g. `your-client-id-here`, the sample base URL)
// so the copied .env still trips the app's missing-env-var check until real
// values are filled in.
.replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*|https:\/\/localhost:8090)$/gm, '$1=');
fs.writeFileSync(envTarget, envContent);
}

Expand Down
2 changes: 1 addition & 1 deletion samples/react/quickstart/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Base URL of your ThunderID deployment (org tenant).
# Base URL of your ThunderID deployment. ex: https://localhost:8090
VITE_THUNDERID_BASE_URL=https://localhost:8090

# OAuth2 Client ID for this app. ThunderID Console -> your application -> Overview.
Expand Down
7 changes: 4 additions & 3 deletions samples/react/quickstart/scripts/prepare-dev.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ const root = path.join(__dirname, '..');
const envExample = path.join(root, '.env.example');
const envTarget = path.join(root, '.env');
if (fs.existsSync(envExample) && !fs.existsSync(envTarget)) {
// Blank placeholder values (e.g. `your-client-id-here`) so the copied .env
// still trips the app's missing-env-var check until real values are filled in.
// Blank placeholder values (e.g. `your-client-id-here`, the sample base URL)
// so the copied .env still trips the app's missing-env-var check until real
// values are filled in.
const envContent = fs
.readFileSync(envExample, 'utf8')
.replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*)$/gm, '$1=');
.replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*|https:\/\/localhost:8090)$/gm, '$1=');
fs.writeFileSync(envTarget, envContent);
}

Expand Down
2 changes: 1 addition & 1 deletion samples/vue/quickstart/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Base URL of your ThunderID deployment (org tenant).
# Base URL of your ThunderID deployment. ex: https://localhost:8090
VITE_THUNDERID_BASE_URL=https://localhost:8090

# OAuth2 Client ID for this app. ThunderID Console -> your application -> Overview.
Expand Down
7 changes: 4 additions & 3 deletions samples/vue/quickstart/scripts/prepare-dev.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ const root = path.join(__dirname, '..');
const envExample = path.join(root, '.env.example');
const envTarget = path.join(root, '.env');
if (fs.existsSync(envExample) && !fs.existsSync(envTarget)) {
// Blank placeholder values (e.g. `your-client-id-here`) so the copied .env
// still trips the app's missing-env-var check until real values are filled in.
// Blank placeholder values (e.g. `your-client-id-here`, the sample base URL)
// so the copied .env still trips the app's missing-env-var check until real
// values are filled in.
const envContent = fs
.readFileSync(envExample, 'utf8')
.replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*)$/gm, '$1=');
.replace(/^([A-Z0-9_]+)=(your-\S*|generate-with-\S*|https:\/\/localhost:8090)$/gm, '$1=');
fs.writeFileSync(envTarget, envContent);
}

Expand Down
Loading