Overview
Fetches an existing user by P-256 API key public key, or creates a new one if none exists.- This function is idempotent: multiple calls with the same
publicKey
will always return the same user. - Attempts to find a user whose API keys include the given P-256 public key.
- If a matching user is found, it is returned as-is.
- If no matching user is found, a new user is created with the given public key as a P-256 API key.
Package: core
Defined in: core.ts:2460
Parameters
Response
A successful response returns the following fields:A promise that resolves to the existing or newly created v1User.