@frockbot/plugin-auth 0.3.5 → 0.3.7
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 -4
- package/src/client/AuthGate.vue +1 -3
- package/src/client/browser.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frockbot/plugin-auth",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@better-auth/electron": "1.7.2",
|
|
24
|
-
"@frockbot/client-core": "0.3.
|
|
25
|
-
"@frockbot/kernel-contracts": "0.3.
|
|
24
|
+
"@frockbot/client-core": "0.3.7",
|
|
25
|
+
"@frockbot/kernel-contracts": "0.3.7",
|
|
26
26
|
"better-auth": "1.7.2",
|
|
27
27
|
"cordis": "4.0.0-rc.8",
|
|
28
28
|
"vue": "3.5.41"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@frockbot/plugin-testkit": "0.3.
|
|
31
|
+
"@frockbot/plugin-testkit": "0.3.7",
|
|
32
32
|
"@types/bun": "1.4.0",
|
|
33
33
|
"@types/node": "26.2.0",
|
|
34
34
|
"typescript": "5.9.3",
|
package/src/client/AuthGate.vue
CHANGED
|
@@ -138,9 +138,7 @@ onBeforeUnmount(() => {
|
|
|
138
138
|
<div class="auth-mark" aria-hidden="true">⌁</div>
|
|
139
139
|
<p class="auth-eyebrow">FrockBot</p>
|
|
140
140
|
<h1 id="auth-title">Welcome back</h1>
|
|
141
|
-
<p class="auth-copy">
|
|
142
|
-
Sign in in your browser to keep credentials out of the desktop renderer.
|
|
143
|
-
</p>
|
|
141
|
+
<p class="auth-copy">Sign in with your browser to continue.</p>
|
|
144
142
|
<div v-if="loading" class="auth-loading" aria-live="polite">
|
|
145
143
|
Checking your session…
|
|
146
144
|
</div>
|
package/src/client/browser.ts
CHANGED
|
@@ -31,7 +31,7 @@ function embeddedAuthMode(): "anonymous" | "better-auth" | "development" {
|
|
|
31
31
|
function embeddedIsAdmin(): boolean {
|
|
32
32
|
const value = document.body.dataset.frockbotIsAdmin;
|
|
33
33
|
if (value !== "true" && value !== "false") {
|
|
34
|
-
throw new Error("
|
|
34
|
+
throw new Error("Couldn't load admin settings.");
|
|
35
35
|
}
|
|
36
36
|
return value === "true";
|
|
37
37
|
}
|