diff --git a/extension/src/setup/setup.ts b/extension/src/setup/setup.ts
index 8c0fa6c..e250189 100644
--- a/extension/src/setup/setup.ts
+++ b/extension/src/setup/setup.ts
@@ -7,6 +7,7 @@
/// Step 5: Finish (download reference image, push config to extension or copy JSON)
import { createGitHost, uint8ArrayToBase64 } from '../service-worker/git-host';
+import { addDevice } from '../service-worker/devices';
import { probeVault } from './probe';
import type { VaultConfig } from '../shared/types';
import type { SessionHandle } from 'relicario-wasm';
@@ -1042,32 +1043,38 @@ function renderStep5(): string {
repoPath: state.repoPath,
apiToken: state.apiToken,
};
-
const configJson = JSON.stringify(config, null, 2);
+ const isAttach = state.mode === 'attach';
return `
-
vault created
-
Your vault has been initialized and pushed to the repository.
+
${isAttach ? 'device verified' : 'vault created'}
+
+ ${isAttach
+ ? 'Your passphrase and reference image decrypt the vault successfully.'
+ : 'Your vault has been initialized and pushed to the repository.'}
+
-
-
-
- Download and store this image securely. It is your second factor for decryption.
- Without it, you cannot unlock the vault.
-
-
-
+ ${isAttach ? '' : `
+
+
+
+ Download and store this image securely. It is your second factor for decryption.
+ Without it, you cannot unlock the vault.
+