UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.GetPasswordHashAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the password hash for a user.
public virtual System.Threading.Tasks.Task<string> GetPasswordHashAsync (TUser user, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task<string?> GetPasswordHashAsync (TUser user, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPasswordHashAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.GetPasswordHashAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function GetPasswordHashAsync (user As TUser, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)
Parameters
- user
- TUser
The user to retrieve the password hash for.
- cancellationToken
- CancellationToken
The CancellationToken used to propagate notifications that the operation should be canceled.
Returns
A Task<TResult> that contains the password hash for the user.