Skip to content

Commit 155efe2

Browse files
committed
Remove support for deprecated OTP functionality
1 parent e323900 commit 155efe2

12 files changed

+9
-132
lines changed

cjs/client.cjs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24331,17 +24331,6 @@ Client.prototype.authenticateWithNotificationPayload = function (payload, userPi
2433124331
this._authentication(payload["userID"], userPin, ["oidc"], callback);
2433224332
};
2433324333

24334-
/**
24335-
* Fetch an OTP for the specified user ID
24336-
*
24337-
* @param {string} userId - The unique identifier of the user
24338-
* @param {string} userPin - The PIN associated with the userId
24339-
* @param {function(Error, Object)} callback
24340-
*/
24341-
Client.prototype.generateOTP = function (userId, userPin, callback) {
24342-
this._authentication(userId, userPin, ["otp"], callback);
24343-
};
24344-
2434524334
/**
2434624335
* Fetch a registration (bootstrap) code for the specified user ID
2434724336
*

cjs/promise.cjs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24331,17 +24331,6 @@ Client.prototype.authenticateWithNotificationPayload = function (payload, userPi
2433124331
this._authentication(payload["userID"], userPin, ["oidc"], callback);
2433224332
};
2433324333

24334-
/**
24335-
* Fetch an OTP for the specified user ID
24336-
*
24337-
* @param {string} userId - The unique identifier of the user
24338-
* @param {string} userPin - The PIN associated with the userId
24339-
* @param {function(Error, Object)} callback
24340-
*/
24341-
Client.prototype.generateOTP = function (userId, userPin, callback) {
24342-
this._authentication(userId, userPin, ["otp"], callback);
24343-
};
24344-
2434524334
/**
2434624335
* Fetch a registration (bootstrap) code for the specified user ID
2434724336
*
@@ -24687,10 +24676,6 @@ class PromiseInterface extends Client {
2468724676
return promisify(super.authenticateWithNotificationPayload.bind(this), payload, userPin);
2468824677
}
2468924678

24690-
generateOTP(userId, userPin) {
24691-
return promisify(super.generateOTP.bind(this), userId, userPin);
24692-
}
24693-
2469424679
generateQuickCode(userId, userPin) {
2469524680
return promisify(super.generateQuickCode.bind(this), userId, userPin);
2469624681
}

dist/client.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24332,17 +24332,6 @@ Client.prototype.authenticateWithNotificationPayload = function (payload, userPi
2433224332
this._authentication(payload["userID"], userPin, ["oidc"], callback);
2433324333
};
2433424334

24335-
/**
24336-
* Fetch an OTP for the specified user ID
24337-
*
24338-
* @param {string} userId - The unique identifier of the user
24339-
* @param {string} userPin - The PIN associated with the userId
24340-
* @param {function(Error, Object)} callback
24341-
*/
24342-
Client.prototype.generateOTP = function (userId, userPin, callback) {
24343-
this._authentication(userId, userPin, ["otp"], callback);
24344-
};
24345-
2434624335
/**
2434724336
* Fetch a registration (bootstrap) code for the specified user ID
2434824337
*

dist/client.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/client.promise.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24332,17 +24332,6 @@ Client.prototype.authenticateWithNotificationPayload = function (payload, userPi
2433224332
this._authentication(payload["userID"], userPin, ["oidc"], callback);
2433324333
};
2433424334

24335-
/**
24336-
* Fetch an OTP for the specified user ID
24337-
*
24338-
* @param {string} userId - The unique identifier of the user
24339-
* @param {string} userPin - The PIN associated with the userId
24340-
* @param {function(Error, Object)} callback
24341-
*/
24342-
Client.prototype.generateOTP = function (userId, userPin, callback) {
24343-
this._authentication(userId, userPin, ["otp"], callback);
24344-
};
24345-
2434624335
/**
2434724336
* Fetch a registration (bootstrap) code for the specified user ID
2434824337
*
@@ -24688,10 +24677,6 @@ class PromiseInterface extends Client {
2468824677
return promisify(super.authenticateWithNotificationPayload.bind(this), payload, userPin);
2468924678
}
2469024679

24691-
generateOTP(userId, userPin) {
24692-
return promisify(super.generateOTP.bind(this), userId, userPin);
24693-
}
24694-
2469524680
generateQuickCode(userId, userPin) {
2469624681
return promisify(super.generateQuickCode.bind(this), userId, userPin);
2469724682
}

dist/client.promise.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@miracl/client-js",
3-
"version": "8.2.0",
3+
"version": "8.3.0",
44
"description": "MIRACL Trust client library",
55
"main": "./src/client.js",
66
"exports": {

src/client.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -461,17 +461,6 @@ Client.prototype.authenticateWithNotificationPayload = function (payload, userPi
461461
this._authentication(payload["userID"], userPin, ["oidc"], callback);
462462
};
463463

464-
/**
465-
* Fetch an OTP for the specified user ID
466-
*
467-
* @param {string} userId - The unique identifier of the user
468-
* @param {string} userPin - The PIN associated with the userId
469-
* @param {function(Error, Object)} callback
470-
*/
471-
Client.prototype.generateOTP = function (userId, userPin, callback) {
472-
this._authentication(userId, userPin, ["otp"], callback);
473-
};
474-
475464
/**
476465
* Fetch a registration (bootstrap) code for the specified user ID
477466
*

src/promise.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ export default class PromiseInterface extends Client {
4141
return promisify(super.authenticateWithNotificationPayload.bind(this), payload, userPin);
4242
}
4343

44-
generateOTP(userId, userPin) {
45-
return promisify(super.generateOTP.bind(this), userId, userPin);
46-
}
47-
4844
generateQuickCode(userId, userPin) {
4945
return promisify(super.generateQuickCode.bind(this), userId, userPin);
5046
}

0 commit comments

Comments
 (0)