zudoku 0.1.1-dev.50 → 0.1.1-dev.51
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/config/config.d.ts +19 -2
- package/dist/config/validators/auth.d.ts +2 -0
- package/dist/config/validators/auth.js +2 -0
- package/dist/config/validators/auth.js.map +1 -0
- package/dist/config/validators/validate.d.ts +2 -0
- package/dist/config/validators/validate.js +4 -0
- package/dist/config/validators/validate.js.map +1 -0
- package/dist/lib/authentication/Callback.d.ts +4 -0
- package/dist/lib/authentication/Callback.js +20 -0
- package/dist/lib/authentication/Callback.js.map +1 -0
- package/dist/lib/authentication/auth0.d.ts +5 -0
- package/dist/lib/authentication/auth0.js +9 -0
- package/dist/lib/authentication/auth0.js.map +1 -0
- package/dist/lib/authentication/authentication.d.ts +7 -10
- package/dist/lib/authentication/clerk.d.ts +3 -4
- package/dist/lib/authentication/clerk.js +13 -6
- package/dist/lib/authentication/clerk.js.map +1 -1
- package/dist/lib/authentication/openid.d.ts +5 -11
- package/dist/lib/authentication/openid.js +90 -73
- package/dist/lib/authentication/openid.js.map +1 -1
- package/dist/lib/components/DevPortal.d.ts +2 -2
- package/dist/lib/components/DevPortal.js +5 -1
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/components/Layout.js +1 -4
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +4 -7
- package/dist/lib/core/DevPortalContext.js +6 -6
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +1 -6
- package/dist/lib/plugins/api-key/index.js +6 -3
- package/dist/lib/plugins/api-key/index.js.map +1 -1
- package/dist/vite/config.js +2 -0
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-auth.js +1 -1
- package/dist/vite/plugin-auth.js.map +1 -1
- package/lib/DevPortalProvider-yBHPOS9_.js +4559 -0
- package/lib/Spinner-Daa7xsri.js +7329 -0
- package/lib/loglevel-D-4S8up4.js +152 -0
- package/lib/zudoku.auth-auth0.js +829 -0
- package/lib/zudoku.auth-clerk.js +21 -12
- package/lib/zudoku.components.js +180 -174
- package/lib/zudoku.plugins.js +5702 -5846
- package/package.json +4 -1
- package/src/lib/authentication/Callback.tsx +31 -0
- package/src/lib/authentication/auth0.tsx +18 -0
- package/src/lib/authentication/authentication.ts +7 -14
- package/src/lib/authentication/{clerk.ts → clerk.tsx} +17 -9
- package/src/lib/authentication/openid.tsx +206 -0
- package/src/lib/components/DevPortal.tsx +10 -3
- package/src/lib/components/Layout.tsx +1 -5
- package/src/lib/core/DevPortalContext.ts +10 -13
- package/src/lib/core/plugins.ts +4 -4
- package/src/lib/plugins/api-key/index.tsx +9 -3
- package/dist/lib/core/types/combine.d.ts +0 -4
- package/dist/lib/core/types/combine.js +0 -2
- package/dist/lib/core/types/combine.js.map +0 -1
- package/lib/Spinner-9_-7nYgL.js +0 -11855
- package/src/lib/authentication/openid.ts +0 -194
- package/src/lib/core/types/combine.ts +0 -16
package/lib/zudoku.auth-clerk.js
CHANGED
|
@@ -1,32 +1,41 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = ({
|
|
2
|
+
clerkPubKey: n
|
|
3
|
+
}) => {
|
|
2
4
|
let e;
|
|
3
|
-
const
|
|
5
|
+
const t = (async () => {
|
|
4
6
|
const { Clerk: s } = await import("./clerk-Wslx_mPo.js");
|
|
5
|
-
e = new s(
|
|
7
|
+
e = new s(n), await e.load({});
|
|
6
8
|
})();
|
|
7
9
|
return {
|
|
8
10
|
initialize: async (s) => {
|
|
9
|
-
var
|
|
10
|
-
await
|
|
11
|
+
var a;
|
|
12
|
+
await t, e.session ? await s.setUserProfile({
|
|
11
13
|
isLoggedIn: !0,
|
|
12
14
|
name: e.session.user.fullName ?? void 0,
|
|
13
|
-
email: ((
|
|
15
|
+
email: ((a = e.session.user.emailAddresses.at(0)) == null ? void 0 : a.emailAddress) ?? void 0
|
|
14
16
|
}) : await s.setUserProfile({
|
|
15
17
|
isLoggedIn: !1
|
|
16
18
|
});
|
|
17
19
|
},
|
|
18
|
-
|
|
20
|
+
async signRequest(s) {
|
|
19
21
|
var i;
|
|
20
|
-
|
|
22
|
+
await t;
|
|
23
|
+
const a = await ((i = e.session) == null ? void 0 : i.getToken());
|
|
24
|
+
return s.headers.set("Authorization", `Bearer ${a}`), s;
|
|
21
25
|
},
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
getToken: async () => {
|
|
27
|
+
var a;
|
|
28
|
+
return await t, await ((a = e.session) == null ? void 0 : a.getToken()) ?? void 0;
|
|
29
|
+
},
|
|
30
|
+
logout: async () => {
|
|
31
|
+
await e.signOut();
|
|
24
32
|
},
|
|
25
33
|
login: async () => {
|
|
26
34
|
await e.redirectToSignIn();
|
|
27
|
-
}
|
|
35
|
+
},
|
|
36
|
+
getRoutes: () => []
|
|
28
37
|
};
|
|
29
38
|
};
|
|
30
39
|
export {
|
|
31
|
-
|
|
40
|
+
o as default
|
|
32
41
|
};
|