X-Git-Url: http://git.squeep.com/?p=squeep-indie-auther;a=blobdiff_plain;f=src%2Fdb%2Fabstract.js;fp=src%2Fdb%2Fabstract.js;h=953034dba67d06d8063275e04a50bb01aa5a3ec1;hp=d5367df933c109f632140517b55790deb0251045;hb=fba42a499fe1af051b0982c1f3e8b3873c9ed2fb;hpb=e8dccf76ec2776f07eddd1ce2f1c4fc150a6f790 diff --git a/src/db/abstract.js b/src/db/abstract.js index d5367df..953034d 100644 --- a/src/db/abstract.js +++ b/src/db/abstract.js @@ -290,13 +290,38 @@ class Database { * @param {*} dbCtx * @param {String} identifier * @param {String} credential + * @param {String=} otpKey * @returns {Promise} */ - 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} + */ + 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} + */ + async authenticationUpdateCredential(dbCtx, identifier, credential) { + this._notImplemented('authenticationUpdateCredentials', arguments); + } + + /** * Determine if profile url is known to this service. * @param {*} dbCtx