Share via


SignInManager<TUser>.PerformPasskeyAssertionAsync(String) Method

Definition

Performs passkey assertion for the given credentialJson.

public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyAssertionResult<TUser>> PerformPasskeyAssertionAsync(string credentialJson);
abstract member PerformPasskeyAssertionAsync : string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyAssertionResult<'User>>
override this.PerformPasskeyAssertionAsync : string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyAssertionResult<'User>>
Public Overridable Function PerformPasskeyAssertionAsync (credentialJson As String) As Task(Of PasskeyAssertionResult(Of TUser))

Parameters

credentialJson
String

The credentials obtained by JSON-serializing the result of the navigator.credentials.get() JavaScript function.

Returns

A task object representing the asynchronous operation containing the PasskeyAssertionResult<TUser>.

Remarks

The credentialJson should be obtained by JSON-serializing the result of the navigator.credentials.get() JavaScript API. The argument to navigator.credentials.get() should be obtained by calling MakePasskeyRequestOptionsAsync(TUser). Upon success, the Passkey should be stored on the User using AddOrUpdatePasskeyAsync(TUser, UserPasskeyInfo).

Applies to