create-authhero 0.12.0 → 0.13.0

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.
@@ -12,6 +12,8 @@ export default {
12
12
  const url = new URL(request.url);
13
13
  const adminEmail = url.searchParams.get("email");
14
14
  const adminPassword = url.searchParams.get("password");
15
+ // Compute issuer from the request URL (for Management API identifier)
16
+ const issuer = `${url.protocol}//${url.host}/`;
15
17
 
16
18
  if (!adminEmail || !adminPassword) {
17
19
  return new Response(
@@ -34,6 +36,7 @@ export default {
34
36
  const result = await seed(adapters, {
35
37
  adminEmail,
36
38
  adminPassword,
39
+ issuer,
37
40
  });
38
41
 
39
42
  return new Response(
@@ -12,6 +12,8 @@ export default {
12
12
  const url = new URL(request.url);
13
13
  const adminEmail = url.searchParams.get("email");
14
14
  const adminPassword = url.searchParams.get("password");
15
+ // Compute issuer from the request URL (for Management API identifier)
16
+ const issuer = `${url.protocol}//${url.host}/`;
15
17
 
16
18
  if (!adminEmail || !adminPassword) {
17
19
  return new Response(
@@ -34,6 +36,7 @@ export default {
34
36
  const result = await seed(adapters, {
35
37
  adminEmail,
36
38
  adminPassword,
39
+ issuer,
37
40
  });
38
41
 
39
42
  return new Response(
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "https://github.com/markusahlstrand/authhero"
7
7
  },
8
- "version": "0.12.0",
8
+ "version": "0.13.0",
9
9
  "type": "module",
10
10
  "main": "dist/create-authhero.js",
11
11
  "bin": {