Logs in a user using the specified wallet provider.Documentation Index
Fetch the complete documentation index at: https://turnkey-0e7c1f5b-amir-tx-status-webhooks.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- This function logs in a user by authenticating with the provided wallet provider via a wallet-based signature.
- If a public key is not provided, a new one will be generated for authentication.
- Optionally accepts a custom session key and session expiration time.
- Stores the resulting session token under the specified session key, or the default session key if not provided.
- Throws an error if a public key cannot be found or generated, or if the login process fails.
Package: core
Defined in: clients/core.ts:962
A promise that resolves to a WalletAuthResult, which includes:
sessionToken: the signed JWT session token.address: the authenticated wallet address.