correct response treatment of openConnectionCallback

This commit is contained in:
clauspeterhuebner 2025-07-14 18:45:10 +02:00
parent 3b9ff8a4a4
commit 008d8ac243

View File

@ -33,8 +33,9 @@ export class AuthenticationClient {
logger.debug('openConnectionCallback with endpoint', this.endpoint, args)
try {
const { data } = await this.client.rawRequest<any>(openConnectionCallback, { args })
logger.debug('after openConnectionCallback: data:', data)
if (data && data.openConnectionCallback) {
if (!data || !data.openConnectionCallback) {
logger.warn('openConnectionCallback without response data from endpoint', this.endpoint)
return false
}