more logoutputs

This commit is contained in:
clauspeterhuebner 2025-07-10 23:43:15 +02:00
parent 5439baaced
commit 9b5c023e0d
2 changed files with 6 additions and 2 deletions

View File

@ -29,7 +29,7 @@ export async function startCommunityAuthentication(
})
logger.debug('homeFedComA', new FederatedCommunityLoggingView(homeFedComA))
const comB = await DbCommunity.findOneByOrFail({ publicKey: fedComB.publicKey })
logger.debug('started with comB:', comB)
logger.debug('started with comB:', new CommunityLoggingView(comB))
// check if communityUuid is a valid v4Uuid and not still a temporary onetimecode
try {
if (

View File

@ -43,7 +43,11 @@ export class AuthenticationResolver {
logger.removeContext('handshakeID')
throw new Error(errmsg)
}
const fedComA = await DbFedCommunity.findOneByOrFail({ publicKey: Buffer.from(args.publicKey) })
const pubKeyComA = Buffer.from(args.publicKey, 'hex')
logger.debug('pubKeyComA', pubKeyComA)
logger.debug('args.publicKey', args.publicKey)
const fedComA = await DbFedCommunity.findOneByOrFail({ publicKey: pubKeyComA })
logger.debug('fedComA', new FederatedCommunityLoggingView(fedComA))
if (!openConnectionJwtPayload.url.startsWith(fedComA.endPoint)) {
const errmsg = `invalid url of community with publicKey` + args.publicKey
logger.error(errmsg)