Skip to content

Commit

Permalink
Added configuration param to start method
Browse files Browse the repository at this point in the history
  • Loading branch information
CSantosM committed Dec 19, 2020
1 parent 9dd77e9 commit 0ea05f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/veriff.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions www/VeriffCordovaPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const PLUGIN_NAME = 'VeriffCordovaPlugin';

const LAUNCH_VERIFF_SDK_ACTION = 'launchVeriffSDK';

function start(sessionToken) {
function start(sessionToken, configuration) {
return new Promise((resolve, reject) => {
if (sessionToken) {
exec(
Expand All @@ -19,7 +19,7 @@ function start(sessionToken) {
},
PLUGIN_NAME,
LAUNCH_VERIFF_SDK_ACTION,
[sessionToken],
[sessionToken, configuration],
);
} else {
reject(new Error(URL_ERROR));
Expand Down

0 comments on commit 0ea05f9

Please sign in to comment.