Polkadot Apps
    Preparing search index...
    interface CreateTestSessionOptions {
        appId: string;
        includeSecrets?: boolean;
        localDerivation?: string;
        localMnemonic?: string;
        remoteDerivation?: string;
        remoteMnemonic?: string;
        sessionId?: string;
        storageDir: string;
    }
    Index

    Properties

    appId: string

    Unique app identifier. Must match the one passed to createTerminalAdapter.

    includeSecrets?: boolean

    Whether to write the encrypted UserSecrets_<id> file. Default: true. Set to false to exercise recovery paths where a session exists on disk but its secrets are missing.

    localDerivation?: string

    Derivation path for the local account. Default: "//wallet//sso" (matches production).

    localMnemonic?: string

    BIP39 mnemonic for the local (host-side) account. Default: freshly generated.

    remoteDerivation?: string

    Derivation path for the remote account. Default: "".

    remoteMnemonic?: string

    BIP39 mnemonic for the remote (phone) account. Default: freshly generated.

    sessionId?: string

    Stable session id. Default: random nanoid(12).

    storageDir: string

    Directory where session files are written. Must match the one the CLI reads from — pass the same value to createTerminalAdapter's storageDir option.