@accounts/server
Advanced tools
Comparing version 0.26.0-alpha.3 to 0.26.0-alpha.4
@@ -24,4 +24,4 @@ import { DatabaseInterface, Authenticator, AuthenticatorService, ConnectionInformations, MfaChallenge } from '@accounts/types'; | ||
/** | ||
* @description Associate a new authenticator, this method is called when the user is enforced to | ||
* associate an authenticator before the first login. | ||
* @description Start the association of a new authenticator, this method is called when the user is | ||
* enforced to associate an authenticator before the first login. | ||
* @param {string} userId - User id to link the new authenticator. | ||
@@ -28,0 +28,0 @@ * @param {string} serviceName - Service name of the authenticator service. |
@@ -54,3 +54,6 @@ "use strict"; | ||
_a.sent(); | ||
return [2 /*return*/, null]; | ||
return [2 /*return*/, { | ||
mfaToken: mfaChallenge.token, | ||
authenticatorId: authenticator.id, | ||
}]; | ||
case 4: return [2 /*return*/, authenticatorService.challenge(mfaChallenge, authenticator, infos)]; | ||
@@ -86,4 +89,4 @@ } | ||
/** | ||
* @description Associate a new authenticator, this method is called when the user is enforced to | ||
* associate an authenticator before the first login. | ||
* @description Start the association of a new authenticator, this method is called when the user is | ||
* enforced to associate an authenticator before the first login. | ||
* @param {string} userId - User id to link the new authenticator. | ||
@@ -90,0 +93,0 @@ * @param {string} serviceName - Service name of the authenticator service. |
{ | ||
"name": "@accounts/server", | ||
"version": "0.26.0-alpha.3", | ||
"version": "0.26.0-alpha.4", | ||
"description": "Fullstack authentication and accounts-management", | ||
@@ -43,3 +43,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@accounts/types": "^0.26.0-alpha.3", | ||
"@accounts/types": "^0.26.0-alpha.4", | ||
"@types/jsonwebtoken": "8.3.5", | ||
@@ -59,3 +59,3 @@ "emittery": "0.5.1", | ||
}, | ||
"gitHead": "c117b8980f2153d497be744f1280bb2db2470514" | ||
"gitHead": "df64531622ef97718abfe5ed5436873ddf58d164" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
105278
1655