set correct url in callback args

This commit is contained in:
Claus-Peter Huebner 2023-10-25 21:49:42 +02:00
parent ec2454e69e
commit 84b9f21049
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ export class AuthenticationClient {
)
return true
} catch (err) {
logger.error('Authentication: error on openConnection', err)
logger.error('Authentication: error on openConnection: ', err)
}
}
}

View File

@ -40,7 +40,7 @@ export async function startOpenConnectionCallback(
callbackArgs.oneTimeCode = oneTimeCode.toString()
// TODO encrypt callbackArgs.url with requestedCom.publicKey and sign it with homeCom.privateKey
callbackArgs.url = homeFedCom.endPoint.endsWith('/')
? homeFedCom.endPoint
? homeFedCom.endPoint + homeFedCom.apiVersion
: homeFedCom.endPoint + '/' + homeFedCom.apiVersion
logger.debug(`Authentication: start openConnectionCallback with args:`, callbackArgs)
if (await client.openConnectionCallback(callbackArgs)) {