Skip to content

Commit

Permalink
Bugfix/session client side validation (#105)
Browse files Browse the repository at this point in the history
* fix: adding missing session fields to the validation request

* fix: added changeset

* chore:Fix PR remarks

Co-authored-by: julien.fougere <julien.fougere@transatel.net>
  • Loading branch information
jfougere and julien.fougere authored Feb 8, 2022
1 parent 30e5653 commit 532e82b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/smooth-parrots-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@voucherify/sdk': patch
'@voucherify/react-widget': patch
---

Fix missing session attributes in client side validation request
4 changes: 4 additions & 0 deletions packages/sdk/src/ClientSide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ export class ClientSide {
query.order = { metadata: params.orderMetadata }
query.customer = params.customer
query.tracking_id = params.tracking_id || this.trackingId
query.session_type = params.session_type
query.session_key = params.session_key
query.session_ttl = params.session_ttl
query.session_ttl_unit = params.session_ttl_unit
}

if (!!query.code) {
Expand Down

0 comments on commit 532e82b

Please sign in to comment.