@cimplify/cli 0.7.7 → 0.7.8
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/{add-DOQ5GETC.mjs → add-BMHJY65N.mjs} +1 -1
- package/dist/{chunk-NGOWIBLQ.mjs → chunk-7ULQCWYD.mjs} +20 -20
- package/dist/{chunk-5JVYR3DF.mjs → chunk-LH7Y27BQ.mjs} +2 -2
- package/dist/{chunk-LWOQXLWB.mjs → chunk-WO2KN3QD.mjs} +1 -1
- package/dist/dispatcher.mjs +9 -9
- package/dist/{doctor-5K4P5FS2.mjs → doctor-U7QRYEFG.mjs} +2 -2
- package/dist/{explain-LQPPHQLD.mjs → explain-ZPBYGQWC.mjs} +1 -1
- package/dist/{introspect-ZY3XWWKN.mjs → introspect-JFJOCF5M.mjs} +2 -2
- package/dist/{list-OJPCXLXZ.mjs → list-LOKEBW5S.mjs} +1 -1
- package/dist/{update-KLETFFES.mjs → update-EJGLLHRW.mjs} +1 -1
- package/package.json +2 -2
- package/templates/manifest.json +26 -26
- package/templates/storefront-auto/app/auth/callback/route.ts +3 -3
- package/templates/storefront-auto/app/auth/session/route.ts +2 -2
- package/templates/storefront-auto/lib/auth.ts +2 -2
- package/templates/storefront-auto/package.json +1 -1
- package/templates/storefront-bakery/app/auth/callback/route.ts +3 -3
- package/templates/storefront-bakery/app/auth/session/route.ts +2 -2
- package/templates/storefront-bakery/lib/auth.ts +2 -2
- package/templates/storefront-bakery/package.json +1 -1
- package/templates/storefront-fashion/app/auth/callback/route.ts +3 -3
- package/templates/storefront-fashion/app/auth/session/route.ts +2 -2
- package/templates/storefront-fashion/lib/auth.ts +2 -2
- package/templates/storefront-fashion/package.json +1 -1
- package/templates/storefront-grocery/app/auth/callback/route.ts +3 -3
- package/templates/storefront-grocery/app/auth/session/route.ts +2 -2
- package/templates/storefront-grocery/lib/auth.ts +2 -2
- package/templates/storefront-grocery/package.json +1 -1
- package/templates/storefront-pharmacy/app/auth/callback/route.ts +3 -3
- package/templates/storefront-pharmacy/app/auth/session/route.ts +2 -2
- package/templates/storefront-pharmacy/lib/auth.ts +2 -2
- package/templates/storefront-pharmacy/package.json +1 -1
- package/templates/storefront-restaurant/app/auth/callback/route.ts +3 -3
- package/templates/storefront-restaurant/app/auth/session/route.ts +2 -2
- package/templates/storefront-restaurant/lib/auth.ts +2 -2
- package/templates/storefront-restaurant/package.json +1 -1
- package/templates/storefront-retail/app/auth/callback/route.ts +3 -3
- package/templates/storefront-retail/app/auth/session/route.ts +2 -2
- package/templates/storefront-retail/lib/auth.ts +2 -2
- package/templates/storefront-retail/package.json +1 -1
- package/templates/storefront-services/app/auth/callback/route.ts +3 -3
- package/templates/storefront-services/app/auth/session/route.ts +2 -2
- package/templates/storefront-services/lib/auth.ts +2 -2
- package/templates/storefront-services/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { handleOidcCallback, handleRedirectCallback } from "@cimplify/sdk/server";
|
|
2
2
|
|
|
3
3
|
const CLIENT_ID = process.env.CIMPLIFY_CLIENT_ID ?? "";
|
|
4
|
-
const
|
|
4
|
+
const ISSUER = process.env.CIMPLIFY_ISSUER;
|
|
5
5
|
const REDIRECT_URI = process.env.CIMPLIFY_REDIRECT_URI ?? "";
|
|
6
6
|
|
|
7
7
|
// Redirect sign-in: the browser lands here via a top-level GET carrying ?code.
|
|
@@ -11,7 +11,7 @@ export async function GET(req: Request): Promise<Response> {
|
|
|
11
11
|
}
|
|
12
12
|
return handleRedirectCallback(req, {
|
|
13
13
|
clientId: CLIENT_ID,
|
|
14
|
-
|
|
14
|
+
issuer: ISSUER,
|
|
15
15
|
redirectUri: REDIRECT_URI,
|
|
16
16
|
defaultReturnTo: "/account",
|
|
17
17
|
});
|
|
@@ -24,7 +24,7 @@ export async function POST(req: Request): Promise<Response> {
|
|
|
24
24
|
}
|
|
25
25
|
return handleOidcCallback(req, {
|
|
26
26
|
clientId: CLIENT_ID,
|
|
27
|
-
|
|
27
|
+
issuer: ISSUER,
|
|
28
28
|
redirectUri: REDIRECT_URI,
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { handleSessionRequest } from "@cimplify/sdk/server";
|
|
2
2
|
|
|
3
3
|
const CLIENT_ID = process.env.CIMPLIFY_CLIENT_ID ?? "";
|
|
4
|
-
const
|
|
4
|
+
const ISSUER = process.env.CIMPLIFY_ISSUER;
|
|
5
5
|
|
|
6
6
|
export async function GET(req: Request): Promise<Response> {
|
|
7
7
|
if (!CLIENT_ID) {
|
|
8
8
|
return Response.json({ sub: null }, { status: 200 });
|
|
9
9
|
}
|
|
10
|
-
return handleSessionRequest(req, { clientId: CLIENT_ID,
|
|
10
|
+
return handleSessionRequest(req, { clientId: CLIENT_ID, issuer: ISSUER });
|
|
11
11
|
}
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
} from "@cimplify/sdk/server";
|
|
9
9
|
|
|
10
10
|
const CLIENT_ID = process.env.CIMPLIFY_CLIENT_ID ?? "";
|
|
11
|
-
const
|
|
11
|
+
const ISSUER = process.env.CIMPLIFY_ISSUER;
|
|
12
12
|
|
|
13
|
-
const oidcConfig = { clientId: CLIENT_ID,
|
|
13
|
+
const oidcConfig = { clientId: CLIENT_ID, issuer: ISSUER };
|
|
14
14
|
|
|
15
15
|
export async function getSession(): Promise<CimplifySession | null> {
|
|
16
16
|
if (!CLIENT_ID) return null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { handleOidcCallback, handleRedirectCallback } from "@cimplify/sdk/server";
|
|
2
2
|
|
|
3
3
|
const CLIENT_ID = process.env.CIMPLIFY_CLIENT_ID ?? "";
|
|
4
|
-
const
|
|
4
|
+
const ISSUER = process.env.CIMPLIFY_ISSUER;
|
|
5
5
|
const REDIRECT_URI = process.env.CIMPLIFY_REDIRECT_URI ?? "";
|
|
6
6
|
|
|
7
7
|
// Redirect sign-in: the browser lands here via a top-level GET carrying ?code.
|
|
@@ -11,7 +11,7 @@ export async function GET(req: Request): Promise<Response> {
|
|
|
11
11
|
}
|
|
12
12
|
return handleRedirectCallback(req, {
|
|
13
13
|
clientId: CLIENT_ID,
|
|
14
|
-
|
|
14
|
+
issuer: ISSUER,
|
|
15
15
|
redirectUri: REDIRECT_URI,
|
|
16
16
|
defaultReturnTo: "/account",
|
|
17
17
|
});
|
|
@@ -24,7 +24,7 @@ export async function POST(req: Request): Promise<Response> {
|
|
|
24
24
|
}
|
|
25
25
|
return handleOidcCallback(req, {
|
|
26
26
|
clientId: CLIENT_ID,
|
|
27
|
-
|
|
27
|
+
issuer: ISSUER,
|
|
28
28
|
redirectUri: REDIRECT_URI,
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { handleSessionRequest } from "@cimplify/sdk/server";
|
|
2
2
|
|
|
3
3
|
const CLIENT_ID = process.env.CIMPLIFY_CLIENT_ID ?? "";
|
|
4
|
-
const
|
|
4
|
+
const ISSUER = process.env.CIMPLIFY_ISSUER;
|
|
5
5
|
|
|
6
6
|
export async function GET(req: Request): Promise<Response> {
|
|
7
7
|
if (!CLIENT_ID) {
|
|
8
8
|
return Response.json({ sub: null }, { status: 200 });
|
|
9
9
|
}
|
|
10
|
-
return handleSessionRequest(req, { clientId: CLIENT_ID,
|
|
10
|
+
return handleSessionRequest(req, { clientId: CLIENT_ID, issuer: ISSUER });
|
|
11
11
|
}
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
} from "@cimplify/sdk/server";
|
|
9
9
|
|
|
10
10
|
const CLIENT_ID = process.env.CIMPLIFY_CLIENT_ID ?? "";
|
|
11
|
-
const
|
|
11
|
+
const ISSUER = process.env.CIMPLIFY_ISSUER;
|
|
12
12
|
|
|
13
|
-
const oidcConfig = { clientId: CLIENT_ID,
|
|
13
|
+
const oidcConfig = { clientId: CLIENT_ID, issuer: ISSUER };
|
|
14
14
|
|
|
15
15
|
export async function getSession(): Promise<CimplifySession | null> {
|
|
16
16
|
if (!CLIENT_ID) return null;
|