Skip to content

Commit

Permalink
Adding code length for verify session request
Browse files Browse the repository at this point in the history
  • Loading branch information
narayana-plivo committed Aug 13, 2024
1 parent 4aa58d8 commit 19f3de9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/resources/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class SessionInterface extends PlivoResourceInterface {
create(sessionReq){

var isObject = arguments.length;
var app_uuid, recipient, url, method, channel, locale , brand_name, app_hash
var app_uuid, recipient, url, method, channel, locale , brand_name, app_hash , code_length

if (isObject === 1) {
app_uuid = sessionReq.app_uuid
Expand All @@ -151,6 +151,7 @@ export class SessionInterface extends PlivoResourceInterface {
locale = sessionReq.locale
brand_name = sessionReq.brand_name
app_hash = sessionReq.app_hash
code_length = sessionReq.code_length
}

let errors = validate([{
Expand Down Expand Up @@ -190,6 +191,9 @@ export class SessionInterface extends PlivoResourceInterface {
if(app_hash) {
params.app_hash = app_hash
}
if (code_length) {
params.code_length = code_length
}
}

let client = this[clientKey];
Expand Down

0 comments on commit 19f3de9

Please sign in to comment.