@accounts/password
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -81,3 +81,3 @@ import { User, TokenRecord, DatabaseInterface, AuthenticationService, HashAlgorithm, ConnectionInformations, LoginResult } from '@accounts/types'; | ||
* @param {string} newPassword - A new password for the user. | ||
* @returns {Promise<LoginResult>} - Session tokens and user object. | ||
* @returns {Promise<LoginResult | null>} - If `returnTokensAfterResetPassword` option is true return the session tokens and user object, otherwise return null. | ||
*/ | ||
@@ -84,0 +84,0 @@ resetPassword(token: string, newPassword: PasswordType, infos: ConnectionInformations): Promise<LoginResult | null>; |
@@ -196,3 +196,3 @@ "use strict"; | ||
* @param {string} newPassword - A new password for the user. | ||
* @returns {Promise<LoginResult>} - Session tokens and user object. | ||
* @returns {Promise<LoginResult | null>} - If `returnTokensAfterResetPassword` option is true return the session tokens and user object, otherwise return null. | ||
*/ | ||
@@ -199,0 +199,0 @@ AccountsPassword.prototype.resetPassword = function (token, newPassword, infos) { |
{ | ||
"name": "@accounts/password", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"license": "MIT", | ||
@@ -42,4 +42,4 @@ "main": "lib/index.js", | ||
"peerDependencies": { | ||
"@accounts/server": "^0.4.0-alpha.1" | ||
"@accounts/server": "^0.7.0" | ||
} | ||
} |
@@ -192,3 +192,3 @@ import { trim, isEmpty, pick, isString, isPlainObject, find, includes, defer } from 'lodash'; | ||
* @param {string} newPassword - A new password for the user. | ||
* @returns {Promise<LoginResult>} - Session tokens and user object. | ||
* @returns {Promise<LoginResult | null>} - If `returnTokensAfterResetPassword` option is true return the session tokens and user object, otherwise return null. | ||
*/ | ||
@@ -195,0 +195,0 @@ public async resetPassword( |
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
114564