UserOnlyStore<TUser,TContext,TKey,TUserClaim,TUserLogin,TUserToken,TUserPasskey>.FindPasskeyAsync Method

Definition

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

public virtual 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>
override this.FindPasskeyAsync : 'User * byte[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.UserPasskeyInfo>
Public Overridable 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.

Implements

Applies to