We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fd076b commit 12d565dCopy full SHA for 12d565d
client-vms/src/vm/builder.ts
@@ -196,10 +196,7 @@ export class VmClientBuilder {
196
}
197
198
199
- if (
200
- !leaderClusterInfo.publicKeys ||
201
- !leaderClusterInfo.publicKeys.authentication
202
- )
+ if (!leaderClusterInfo.publicKeys?.authentication)
203
throw new Error("Leader public key not in cluster details");
204
205
const user_id = UserId.from(tokenAuthManager.publicKey);
@@ -209,7 +206,7 @@ export class VmClientBuilder {
209
206
.id(user_id)
210
207
.signer(signer)
211
208
.leader(leader.transport)
212
- .leaderPublicKey(leaderClusterInfo.publicKeys?.authentication)
+ .leaderPublicKey(leaderClusterInfo.publicKeys.authentication)
213
.build();
214
215
const config = VmClientConfig.parse({
0 commit comments