Share via


IUserPasskeyStore<TUser>.AddOrUpdatePasskeyAsync Method

Definition

Adds a new passkey credential in the store for the specified user, or updates an existing passkey.

public System.Threading.Tasks.Task AddOrUpdatePasskeyAsync(TUser user, Microsoft.AspNetCore.Identity.UserPasskeyInfo passkey, System.Threading.CancellationToken cancellationToken);
abstract member AddOrUpdatePasskeyAsync : 'User * Microsoft.AspNetCore.Identity.UserPasskeyInfo * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function AddOrUpdatePasskeyAsync (user As TUser, passkey As UserPasskeyInfo, cancellationToken As CancellationToken) As Task

Parameters

user
TUser

The user to create the passkey credential for.

passkey
UserPasskeyInfo

The passkey to add.

cancellationToken
CancellationToken

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

Returns

The Task that represents the asynchronous operation.

Applies to