PingOne Recognize

Multi-threading

Starting with v2.2, PingOne Recognize is single-threaded by default. Enable multi-threading to improve performance.

Enabling multi-threading

PingOne Recognize supports WebAssembly (WASM) POSIX threads (pthreads). Enable multi-threading by adding the appropriate flag, as shown in the following examples:

Headless

await importKeylessWebAssemblyModule({
  ...,
  pthreads: true
})

Web components

<kl-auth
...
enable-wasm-pthreads
></kl-auth>

Security headers

Multi-threading requires two security headers. If either header is missing or has an incorrect value, you cannot enable multi-threading.

Name

Value

Cross-Origin-Embedder-Policy

require-corp

Cross-Origin-Opener-Policy

same-origin

When loading resources from external domains, use the crossorigin attribute. To learn more, refer to Cross-Origin-Embedder-Policy: Avoiding COEP Blockage with CORS