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