+ Failed to decrypt credential. Please verify if your vault session remains active.
+
+ ) : (
+ <>
+ {/* Decrypted Payload Hero Card */}
+
+
+
+
+ DECRYPTED VAULT PAYLOAD
+
+
+
+ {cred.secretType === "LOGIN" && (
+ <>
+ {(payload.username || payload.user || payload.email) && (
+
+
+ Username / Email
+
+
+
+ {payload.username || payload.user || payload.email}
+
+
+
+
+ )}
+
+ {(payload.password || payload.pass || payload.secret) && (
+
+
+ Password
+
+
+
+ {showPassword
+ ? payload.password || payload.pass || payload.secret
+ : "••••••••••••••••"}
+
+
+
+
+
+ )}
+ >
+ )}
+
+ {cred.secretType === "API_KEY" &&
+ (payload.apiKey || payload.api_key || payload.token || payload.key) && (
+
+
+ API Key / Token
+
+
+
+ {showApiKey
+ ? payload.apiKey || payload.api_key || payload.token || payload.key
+ : "••••••••••••••••••••••••••••••••"}
+
+
+
+
+
+ )}
+
+ {cred.secretType === "RAW_TEXT" &&
+ (() => {
+ const rawTextValue =
+ payload.rawTextContent ||
+ payload.rawText ||
+ payload.content ||
+ payload.text ||
+ (Object.values(payload)[0] as string) ||
+ "";
+
+ if (!rawTextValue) return null;
+
+ return (
+
+
+
Secret Content (Text / Private Key)
+
+
+
+
+
+
+ {showRawText
+ ? rawTextValue
+ : "••••••••••••••••••••••••••••••••\n••••••••••••••••••••••••••••••••\n••••••••••••••••••••••••••••••••"}
+
+
+ );
+ })()}
+
+ {cred.relatedUrl && (
+
+ )}
+
+ {cred.notes && (
+
+ )}
+
+ {cred.tags && cred.tags.length > 0 && (
+
+
Tags
+
+ {cred.tags.map((tag) => (
+
+
+ {tag.name}
+
+ ))}
+
+
+ )}
+