Package: react-wallet-kit
Overview
Logs in a user using a passkey, optionally specifying the public key, session key, and session expiration.- 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.
Parameters
Response
A successful response returns the following fields:A promise that resolves to a PasskeyAuthResult, which includes:
sessionToken
: the signed JWT session token.credentialId
: an empty string.