diff --git a/frontend/src/components/AuthStatus.tsx b/frontend/src/components/AuthStatus.tsx index 1a0a100..1ea9857 100644 --- a/frontend/src/components/AuthStatus.tsx +++ b/frontend/src/components/AuthStatus.tsx @@ -1,7 +1,7 @@ import { useAuth } from "../auth/AuthProvider"; export default function AuthStatus() { - const { enabled, status, user, backendClaims, verifying, signingIn, signInWithGoogle, signOut, error } = useAuth(); + const { enabled, status, user, verifying, signingIn, signInWithGoogle, signOut, error } = useAuth(); if (!enabled) { return
Auth off
; @@ -25,9 +25,11 @@ export default function AuthStatus() { {user.photoURL && }
{user.displayName || user.email || user.uid}
-
- {verifying ? "確認中…" : backendClaims ? "バックエンド認証済み" : "未確認"} -
+ {verifying && ( +
+ 確認中… +
+ )} {error &&
{error}
}
diff --git a/frontend/src/pages/ShowsPage.tsx b/frontend/src/pages/ShowsPage.tsx index 9c1f82a..750719f 100644 --- a/frontend/src/pages/ShowsPage.tsx +++ b/frontend/src/pages/ShowsPage.tsx @@ -318,7 +318,7 @@ export default function ShowsPage() { 削除は認証後のみ実行できます。サイドバー下部の「管理用サインイン」からログインしてください。 {isAuthed && ( - {" "} {verifying ? "トークン確認中…" : backendClaims ? "バックエンドで確認済み" : "未確認トークン"} + {" "} {verifying ? "トークン確認中…" : backendClaims ? "サインイン済み" : "未確認トークン"} )} @@ -372,7 +372,7 @@ export default function ShowsPage() {
第{selectedShow.ep_num}話:{selectedShow.ep_title}
{idToken - ? (verifying ? "トークン確認中…" : backendClaims ? "バックエンドで確認済み" : "バックエンド未確認") + ? (verifying ? "トークン確認中…" : "サインイン済み") : "削除にはサインインが必要です(サイドバー下部の管理用サインインから)"}