Share via


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

Definition

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

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

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

Returns

The Task that represents the asynchronous operation.

Implements

Applies to