update depedencies, changes to support updated authentication-module
[squeep-indie-auther] / src / db / abstract.js
index d5367df933c109f632140517b55790deb0251045..953034dba67d06d8063275e04a50bb01aa5a3ec1 100644 (file)
@@ -290,13 +290,38 @@ class Database {
    * @param {*} dbCtx
    * @param {String} identifier
    * @param {String} credential
+   * @param {String=} otpKey
    * @returns {Promise<void>}
    */
-  async authenticationUpsert(dbCtx, identifier, credential) {
+  async authenticationUpsert(dbCtx, identifier, credential, otpKey) {
     this._notImplemented('authenticationUpsert', arguments);
   }
 
 
+  /**
+   * Update the otpKey for an identifier.
+   * @param {*} dbCtx
+   * @param {String} identifier
+   * @param {String=} otpKey
+   * @returns {Promise<void>}
+   */
+  async authenticationUpdateOTPKey(dbCtx, identifier, otpKey) {
+    this._notImplemented('authenticationUpdateOTPKey', arguments);
+  }
+
+
+  /**
+   * Update the credential for an identifier.
+   * @param {*} dbCtx
+   * @param {String} identifier
+   * @param {String} credential
+   * @returns {Promise<void>}
+   */
+  async authenticationUpdateCredential(dbCtx, identifier, credential) {
+    this._notImplemented('authenticationUpdateCredentials', arguments);
+  }
+
+
   /**
    * Determine if profile url is known to this service.
    * @param {*} dbCtx