Skip to content

Commit

Permalink
feat: Allow to pass in nonce when creating the auth request URI
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Feb 29, 2024
1 parent 9961196 commit 82f82ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/siopv2-oid4vp-rp-rest-api/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export interface ICreateAuthRequestWebappEndpointOpts extends ISingleEndpointOpt
siopBaseURI?: string
webappAuthStatusPath?: string
webappBaseURI?: string
nonce?: string
}

export type IRequiredPlugins = /*IDataStoreORM & IResolver & IDIDManager & IKeyManager & */ ICredentialVerifier & ISIOPv2RP & IPresentationExchange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function createAuthRequestWebappEndpoint(router: Router, context: IRequir
definitionId,
correlationId,
state,
nonce: opts?.nonce,
requestByReferenceURI,
responseURIType: 'redirect_uri',
responseURI,
Expand Down

0 comments on commit 82f82ef

Please sign in to comment.