@frockbot/plugin-auth 0.3.1 → 0.3.3
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/package.json +4 -3
- package/src/client/index.ts +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frockbot/plugin-auth",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -21,13 +21,14 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@better-auth/electron": "1.7.2",
|
|
24
|
-
"@frockbot/client-core": "0.3.
|
|
24
|
+
"@frockbot/client-core": "0.3.3",
|
|
25
|
+
"@frockbot/kernel-contracts": "0.3.3",
|
|
25
26
|
"better-auth": "1.7.2",
|
|
26
27
|
"cordis": "4.0.0-rc.8",
|
|
27
28
|
"vue": "3.5.41"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
|
-
"@frockbot/plugin-testkit": "0.3.
|
|
31
|
+
"@frockbot/plugin-testkit": "0.3.3",
|
|
31
32
|
"@types/bun": "1.4.0",
|
|
32
33
|
"@types/node": "26.2.0",
|
|
33
34
|
"typescript": "5.9.3",
|
package/src/client/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ import AuthGate from "./AuthGate.vue";
|
|
|
6
6
|
import { createBrowserAuthSessionClient } from "./browser.js";
|
|
7
7
|
import "@frockbot/client-core/fonts.css";
|
|
8
8
|
import "./styles.css";
|
|
9
|
+
import { defineClientContribution } from "@frockbot/kernel-contracts/contributions";
|
|
9
10
|
|
|
10
11
|
export const authClientPlugin: ClientPlugin = (ctx: ClientPluginContext) => [
|
|
11
12
|
ctx.provide(authSessionClientKey, createBrowserAuthSessionClient()),
|
|
@@ -13,3 +14,13 @@ export const authClientPlugin: ClientPlugin = (ctx: ClientPluginContext) => [
|
|
|
13
14
|
];
|
|
14
15
|
|
|
15
16
|
export default authClientPlugin;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The manifest's `client` entry, resolved by specifier. The application looks
|
|
20
|
+
* this descriptor up in its Contribution table; it never branches on which
|
|
21
|
+
* Package it belongs to.
|
|
22
|
+
*/
|
|
23
|
+
export const clientContribution = defineClientContribution<ClientPlugin>({
|
|
24
|
+
specifier: "@frockbot/plugin-auth/client",
|
|
25
|
+
plugin: authClientPlugin,
|
|
26
|
+
});
|