Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
shihjay2 committed Jan 29, 2025
1 parent 39e2bc4 commit 1015c0e
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 217 deletions.
6 changes: 3 additions & 3 deletions lib/rp.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RP, CreateJwtCallback, VerifyJwtCallback, ResponseType, ResponseMode, Scope, PassBy, SupportedVersion, SubjectType, RequestAud } from '@sphereon/did-auth-siop';
import { RP, CreateJwtCallback, VerifyJwtCallback, ResponseType, ResponseMode, Scope, PassBy, SupportedVersion, SubjectType } from '@sphereon/did-auth-siop';
import { agent } from './veramo';
import { getUniResolver } from '@sphereon/did-uni-client';
import { Resolvable, Resolver, ResolverRegistry } from 'did-resolver';
Expand Down Expand Up @@ -106,7 +106,7 @@ const verifyDidJWT = async(jwt: string, resolver: Resolvable, options: JWTVerify
}
}

export const rp = (type:string, id:string, aud:any) => {
export const rp = (type:string, id:string) => {
let constraints = {};
if (type === 'NPI') {
constraints = {
Expand Down Expand Up @@ -153,7 +153,7 @@ export const rp = (type:string, id:string, aud:any) => {
.withVerifyJwtCallback(verifyJwtCallback())
.withRequestBy(PassBy.VALUE)
.withCreateJwtCallback(createJwtCallback())
.withAudience(aud)
// .withAudience(aud)
// .withSupportedVersions(SupportedVersion.SIOPv2_ID1)
.withSupportedVersions(SupportedVersion.SIOPv2_D12_OID4VP_D20)
.withPresentationDefinition({
Expand Down
Loading

0 comments on commit 1015c0e

Please sign in to comment.