Skip to content

Commit

Permalink
fix: OobUrl query fetching
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Lanser <[email protected]>
  • Loading branch information
Tommylans committed Nov 6, 2023
1 parent 221108c commit 235d106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/agent/src/parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export async function tryParseDidCommInvitation(
): Promise<OutOfBandInvitation | null> {
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.
Expand Down

0 comments on commit 235d106

Please sign in to comment.