SignInManager<TUser>.PasskeySignInAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Performs a passkey assertion and attempts to sign in the user.
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult> PasskeySignInAsync(string credentialJson);
abstract member PasskeySignInAsync : string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult>
override this.PasskeySignInAsync : string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult>
Public Overridable Function PasskeySignInAsync (credentialJson As String) As Task(Of SignInResult)
Parameters
- credentialJson
- String
The credentials obtained by JSON-serializing the result of the navigator.credentials.get() JavaScript function.
Returns
The task object representing the asynchronous operation containing the SignInResult for the sign-in attempt.
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).