Share via


UserManager<TUser>.GetPasskeyAsync(TUser, Byte[]) Method

Definition

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.

Applies to