diff --git a/frontend/src/components/layout/sidebar-auth.tsx b/frontend/src/components/layout/sidebar-auth.tsx
index 3e9aaf9..d19ca2a 100644
--- a/frontend/src/components/layout/sidebar-auth.tsx
+++ b/frontend/src/components/layout/sidebar-auth.tsx
@@ -6,7 +6,8 @@
import Link from "next/link";
import { useOptionalAuth, useOptionalUser } from "@/hooks/use-optional-auth";
import { authEnabled, localAuthEnabled } from "@/lib/auth";
-import { Button } from "@/components/ui/button";
+import { buttonVariants } from "@/components/ui/button";
+import { cn } from "@/lib/utils";
export function SidebarCredits() {
return null;
@@ -27,12 +28,18 @@ export function SidebarUserButton() {
if (!isSignedIn || !user) {
return (
-
-
+
+ Sign in
+
+
+ Create account
+
);
}
@@ -43,17 +50,19 @@ export function SidebarUserButton() {
{user.email && user.name ? (
{user.email}
) : null}
-
+
);
}
diff --git a/scripts/update-pinscope.sh b/scripts/update-pinscope.sh
index 2d0b33b..99556e0 100755
--- a/scripts/update-pinscope.sh
+++ b/scripts/update-pinscope.sh
@@ -118,13 +118,6 @@ upsert_env NEXT_PUBLIC_API_URL "$SITE" .env
# JSON list — keep it a single line so docker compose / pydantic-settings parse it.
upsert_env CORS_ORIGINS "[\"$SITE\"]" .env
-# Self-host multi-user auth (Pinscope accounts). Generate a secret once if missing.
-if [[ -z "$(read_env AUTH_JWT_SECRET .env || true)" ]]; then
- log "Generating AUTH_JWT_SECRET for local multi-user auth"
- upsert_env AUTH_JWT_SECRET "$(openssl rand -hex 32)" .env
-fi
-upsert_env NEXT_PUBLIC_AUTH_MODE "local" .env
-
KEY="$(read_env DEEPSEEK_API_KEY .env || true)"
if [[ -z "$KEY" || "$KEY" == "sk-..." ]]; then
die "Set a real DEEPSEEK_API_KEY in $ROOT/.env before updating."
@@ -144,6 +137,13 @@ else
log "Skipping git pull (--no-pull)"
fi
+# Self-host multi-user auth — after pull so this script's upsert logic is current.
+if [[ -z "$(read_env AUTH_JWT_SECRET .env || true)" ]]; then
+ log "Generating AUTH_JWT_SECRET for local multi-user auth"
+ upsert_env AUTH_JWT_SECRET "$(openssl rand -hex 32)" .env
+fi
+upsert_env NEXT_PUBLIC_AUTH_MODE "local" .env
+
log "docker compose up -d --build (data/ is kept)"
compose up -d --build