diff --git a/packages/siop-oid4vp/lib/rp/RP.ts b/packages/siop-oid4vp/lib/rp/RP.ts index d876c29d..d3d75e9a 100644 --- a/packages/siop-oid4vp/lib/rp/RP.ts +++ b/packages/siop-oid4vp/lib/rp/RP.ts @@ -197,11 +197,13 @@ export class RP { return this._verifyResponseOptions } - public getResponseRedirectUri(mappings: Record): string | undefined { + public getResponseRedirectUri(mappings?: Record): string | undefined { if (this._responseRedirectUri === undefined) { return undefined } - + if(mappings === undefined) { + return this._responseRedirectUri + } return Object.entries(mappings).reduce( (uri, [key, value]) => uri.replace(`:${key}`, value), this._responseRedirectUri