UserManager<TUser>.GetPasskeyAsync(TUser, Byte[]) 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.
Finds a user's passkey by its credential id.
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.UserPasskeyInfo?> GetPasskeyAsync(TUser user, byte[] credentialId);
abstract member GetPasskeyAsync : 'User * byte[] -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.UserPasskeyInfo>
override this.GetPasskeyAsync : 'User * byte[] -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.UserPasskeyInfo>
Public Overridable Function GetPasskeyAsync (user As TUser, credentialId As Byte()) As Task(Of UserPasskeyInfo)
Parameters
- user
- TUser
The user whose passkey should be retrieved.
- credentialId
- Byte[]
The credential ID to search for.
Returns
The Task that represents the asynchronous operation, containing the passkey if found; otherwise null
.