- This function initiates the login process with a passkey and handles session creation and storage.
- If a public key is not provided, a new key pair will be generated for authentication.
- If a session key is not provided, the default session key will be used.
- The session expiration can be customized via the expirationSeconds parameter.
- Handles cleanup of unused key pairs if login fails.
Package: core
Defined in: clients/core.ts:445
A promise that resolves to a PasskeyAuthResult, which includes:
sessionToken: the signed JWT session token.credentialId: an empty string.