Skip to content

Commit

Permalink
Removed extraneous query params "appId" in requests made by digital_i…
Browse files Browse the repository at this point in the history
…dentity_service
  • Loading branch information
laurent-yoti committed May 22, 2024
1 parent b6c1916 commit 122af9a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/digital_identity_service/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ class DigitalIdentityService {
.withHeader('X-Yoti-Auth-Id', this.sdkId)
.withPemString(this.pem.toString())
.withEndpoint('/v2/sessions')
.withQueryParam('appId', this.sdkId)
.withMethod('POST')
.withPayload(payload);

Expand Down Expand Up @@ -107,7 +106,6 @@ class DigitalIdentityService {
.withHeader('X-Yoti-Auth-Id', this.sdkId)
.withPemString(this.pem.toString())
.withEndpoint(`/v2/sessions/${sessionId}`)
.withQueryParam('appId', this.sdkId)
.withMethod('GET');

const request = requestBuilder.build();
Expand Down Expand Up @@ -148,7 +146,6 @@ class DigitalIdentityService {
.withHeader('X-Yoti-Auth-Id', this.sdkId)
.withPemString(this.pem.toString())
.withEndpoint(`/v2/sessions/${sessionId}/qr-codes`)
.withQueryParam('appId', this.sdkId)
.withMethod('POST')
.withPayload(payload);

Expand Down Expand Up @@ -187,7 +184,6 @@ class DigitalIdentityService {
.withHeader('X-Yoti-Auth-Id', this.sdkId)
.withPemString(this.pem.toString())
.withEndpoint(`/v2/qr-codes/${qrCodeId}`)
.withQueryParam('appId', this.sdkId)
.withMethod('GET');

const request = requestBuilder.build();
Expand Down Expand Up @@ -225,7 +221,6 @@ class DigitalIdentityService {
.withHeader('X-Yoti-Auth-Id', this.sdkId)
.withPemString(this.pem.toString())
.withEndpoint(`/v2/receipts/${receiptIdUrl}`)
.withQueryParam('appId', this.sdkId)
.withMethod('GET')
.build();

Expand All @@ -250,7 +245,6 @@ class DigitalIdentityService {
.withHeader('X-Yoti-Auth-Id', this.sdkId)
.withPemString(this.pem.toString())
.withEndpoint(`/v2/wrapped-item-keys/${receiptItemKeyId}`)
.withQueryParam('appId', this.sdkId)
.withMethod('GET')
.build();

Expand Down

0 comments on commit 122af9a

Please sign in to comment.