Share via


IUserPasskeyStore<TUser>.FindPasskeyAsync Method

Definition

Finds a passkey for the specified user with the specified credential id.

public System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.UserPasskeyInfo?> FindPasskeyAsync(TUser user, byte[] credentialId, System.Threading.CancellationToken cancellationToken);
abstract member FindPasskeyAsync : 'User * byte[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.UserPasskeyInfo>
Public Function FindPasskeyAsync (user As TUser, credentialId As Byte(), cancellationToken As CancellationToken) As Task(Of UserPasskeyInfo)

Parameters

user
TUser

The user whose passkey should be retrieved.

credentialId
Byte[]

The credential id to search for.

cancellationToken
CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

The Task that represents the asynchronous operation, containing the user's passkey information.

Applies to