@authrim/setup 0.1.76 → 0.1.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web/ui.d.ts.map +1 -1
- package/dist/web/ui.js +11 -5
- package/dist/web/ui.js.map +1 -1
- package/package.json +1 -1
package/dist/web/ui.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/web/ui.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wBAAgB,eAAe,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/web/ui.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wBAAgB,eAAe,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CA8vJnF"}
|
package/dist/web/ui.js
CHANGED
|
@@ -2356,7 +2356,7 @@ export function getHtmlTemplate(sessionToken, manageOnly) {
|
|
|
2356
2356
|
<button class="btn-secondary" id="btn-copy-setup-url" style="white-space: nowrap;">📋 Copy</button>
|
|
2357
2357
|
</div>
|
|
2358
2358
|
<div style="text-align: center; margin-top: 1rem;">
|
|
2359
|
-
<a id="btn-open-setup-url" href="#" target="_blank" class="btn-primary"
|
|
2359
|
+
<a id="btn-open-setup-url" href="#" target="_blank" class="btn-primary">🔑 Open Setup</a>
|
|
2360
2360
|
</div>
|
|
2361
2361
|
<div style="font-size: 0.75rem; color: var(--text-muted); margin-top: 0.75rem; text-align: center;">
|
|
2362
2362
|
This URL is valid for 1 hour. Open it in a browser to register the first admin account.
|
|
@@ -3974,7 +3974,7 @@ export function getHtmlTemplate(sessionToken, manageOnly) {
|
|
|
3974
3974
|
<button class="btn-secondary" onclick="navigator.clipboard.writeText('\${result.setupUrl}'); this.textContent='✓ Copied'; setTimeout(() => this.textContent='📋 Copy', 2000);" style="white-space: nowrap;">📋 Copy</button>
|
|
3975
3975
|
</div>
|
|
3976
3976
|
<div style="text-align: center; margin-top: 1rem;">
|
|
3977
|
-
<a href="\${result.setupUrl}" target="_blank" class="btn-primary"
|
|
3977
|
+
<a href="\${result.setupUrl}" target="_blank" class="btn-primary">🔑 Open Setup</a>
|
|
3978
3978
|
</div>
|
|
3979
3979
|
<div class="hint-box" style="margin-top: 0.75rem;">
|
|
3980
3980
|
⚠️ This URL can only be used <strong>once</strong> and expires in <strong>1 hour</strong>.
|
|
@@ -4683,11 +4683,17 @@ export function getHtmlTemplate(sessionToken, manageOnly) {
|
|
|
4683
4683
|
|
|
4684
4684
|
let baseUrl = '';
|
|
4685
4685
|
if (router && router.name) {
|
|
4686
|
-
// Construct URL from worker name
|
|
4687
|
-
|
|
4686
|
+
// Construct URL from worker name with subdomain
|
|
4687
|
+
// Format: https://{worker-name}.{subdomain}.workers.dev
|
|
4688
|
+
if (workersSubdomain) {
|
|
4689
|
+
baseUrl = 'https://' + router.name + '.' + workersSubdomain + '.workers.dev';
|
|
4690
|
+
} else {
|
|
4691
|
+
// Fallback without subdomain (shouldn't happen in practice)
|
|
4692
|
+
baseUrl = 'https://' + router.name + '.workers.dev';
|
|
4693
|
+
}
|
|
4688
4694
|
} else {
|
|
4689
4695
|
// Fallback - ask for URL
|
|
4690
|
-
baseUrl = prompt('Enter the base URL for the router (e.g., https://myenv-ar-router.workers.dev):');
|
|
4696
|
+
baseUrl = prompt('Enter the base URL for the router (e.g., https://myenv-ar-router.subdomain.workers.dev):');
|
|
4691
4697
|
if (!baseUrl) {
|
|
4692
4698
|
btn.disabled = false;
|
|
4693
4699
|
btn.textContent = '🔐 Start Admin Account Setup with Passkey';
|
package/dist/web/ui.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.js","sourceRoot":"","sources":["../../src/web/ui.ts"],"names":[],"mappings":"AAAA;;;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