rework review comments

This commit is contained in:
clauspeterhuebner 2025-08-06 16:48:07 +02:00
parent f43fcc0dd9
commit 44883266c7

View File

@ -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<any>(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<any>(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