Method PrepareAsync
PrepareAsync(CancellationToken)
Loads what operations need ahead of time, so that the first operation does not wait for it: the passkeys script on WebAssembly. Does nothing on other platforms.
Declaration
public Task PrepareAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | A token to cancel the operation. On WebAssembly, cancellation stops waiting but doesn't stop the script from loading. |
Returns
| Type | Description |
|---|---|
| Task |
Implements
Exceptions
| Type | Condition |
|---|---|
| PasskeyAuthenticatorException | The passkeys script could not be loaded. The next operation tries again. |
| OperationCanceledException |
|