diff --git a/samples/UDCStrophe.js b/samples/UDCStrophe.js index db47bc3..e354e2e 100644 --- a/samples/UDCStrophe.js +++ b/samples/UDCStrophe.js @@ -38,7 +38,7 @@ class UDCStrophe { } connect(userID, userPass) { - this._client.setResourceOwnerCreds(userID.split('+')[0], userPass.split('+')[0]); + this._client.setResourceOwnerCreds(userID.split('+')[0], userPass); this.id = userID; return new Promise((resolve, reject) => {