From e79cbbb2c3033195645fea5455ec2c0ea53e94e7 Mon Sep 17 00:00:00 2001 From: Tom Lanser Date: Tue, 7 Nov 2023 04:58:35 +0100 Subject: [PATCH] fix: OobUrl query fetching (#79) Signed-off-by: Tom Lanser --- packages/agent/src/parsers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/agent/src/parsers.ts b/packages/agent/src/parsers.ts index 74310b74..ec3ae535 100644 --- a/packages/agent/src/parsers.ts +++ b/packages/agent/src/parsers.ts @@ -348,7 +348,7 @@ export async function tryParseDidCommInvitation( ): Promise { try { const parsedUrl = queryString.parseUrl(invitationUrl) - const updatedInvitationUrl = (parsedUrl['oobUrl'] as string | undefined) ?? invitationUrl + const updatedInvitationUrl = (parsedUrl.query['oobUrl'] as string | undefined) ?? invitationUrl // Try to parse the invitation as an DIDComm invitation. // We can't know for sure, as it could be a shortened URL to a DIDComm invitation.