Skip to content

Commit 1015c0e

Browse files
committed
debug
1 parent 39e2bc4 commit 1015c0e

File tree

6 files changed

+81
-217
lines changed

6 files changed

+81
-217
lines changed

lib/rp.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RP, CreateJwtCallback, VerifyJwtCallback, ResponseType, ResponseMode, Scope, PassBy, SupportedVersion, SubjectType, RequestAud } from '@sphereon/did-auth-siop';
1+
import { RP, CreateJwtCallback, VerifyJwtCallback, ResponseType, ResponseMode, Scope, PassBy, SupportedVersion, SubjectType } from '@sphereon/did-auth-siop';
22
import { agent } from './veramo';
33
import { getUniResolver } from '@sphereon/did-uni-client';
44
import { Resolvable, Resolver, ResolverRegistry } from 'did-resolver';
@@ -106,7 +106,7 @@ const verifyDidJWT = async(jwt: string, resolver: Resolvable, options: JWTVerify
106106
}
107107
}
108108

109-
export const rp = (type:string, id:string, aud:any) => {
109+
export const rp = (type:string, id:string) => {
110110
let constraints = {};
111111
if (type === 'NPI') {
112112
constraints = {
@@ -153,7 +153,7 @@ export const rp = (type:string, id:string, aud:any) => {
153153
.withVerifyJwtCallback(verifyJwtCallback())
154154
.withRequestBy(PassBy.VALUE)
155155
.withCreateJwtCallback(createJwtCallback())
156-
.withAudience(aud)
156+
// .withAudience(aud)
157157
// .withSupportedVersions(SupportedVersion.SIOPv2_ID1)
158158
.withSupportedVersions(SupportedVersion.SIOPv2_D12_OID4VP_D20)
159159
.withPresentationDefinition({

0 commit comments

Comments
 (0)