From 44883266c7a51fe78988995b42292bc05d78a9e8 Mon Sep 17 00:00:00 2001 From: clauspeterhuebner Date: Wed, 6 Aug 2025 16:48:07 +0200 Subject: [PATCH] rework review comments --- federation/src/client/1_0/AuthenticationClient.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/federation/src/client/1_0/AuthenticationClient.ts b/federation/src/client/1_0/AuthenticationClient.ts index a79f92f90..60a205aa7 100644 --- a/federation/src/client/1_0/AuthenticationClient.ts +++ b/federation/src/client/1_0/AuthenticationClient.ts @@ -31,7 +31,7 @@ export class AuthenticationClient { methodLogger.addContext('handshakeID', args.handshakeID) methodLogger.debug('openConnectionCallback with endpoint', this.endpoint, args) try { - const { data } = await this.client.rawRequest(openConnectionCallback, { args }) + const { data } = await this.client.rawRequest<{ openConnectionCallback: boolean }>(openConnectionCallback, { args }) methodLogger.debug('after openConnectionCallback: data:', data) if (!data || !data.openConnectionCallback) { @@ -51,10 +51,10 @@ export class AuthenticationClient { methodLogger.addContext('handshakeID', args.handshakeID) methodLogger.debug('authenticate with endpoint=', this.endpoint) try { - const { data } = await this.client.rawRequest(authenticate, { args }) + const { data } = await this.client.rawRequest<{ authenticate: string }>(authenticate, { args }) methodLogger.debug('after authenticate: data:', data) - const responseJwt: string = data?.authenticate + const responseJwt = data?.authenticate if (responseJwt) { methodLogger.debug('received authenticated uuid as jwt', responseJwt) return responseJwt