Overview
Builds and signs a wallet login request without submitting it to Turnkey.- This function prepares a signed request for wallet authentication, which can later be used
- It initializes the wallet stamper, ensures a valid session public key (generating one if needed),
- For Ethereum wallets, derives the public key from the stamped request header.
- For Solana wallets, retrieves the public key directly from the connected wallet.
- The signed request is not sent to Turnkey immediately; it is meant to be used in a subsequent flow
loginOrSignupWithWallet) where sub-organization existence is verified or created first.
Package: core
Defined in: clients/core.ts:820
Parameters
Response
A successful response returns the following fields:A promise resolving to an object containing:
signedRequest: the signed wallet login request.publicKey: the public key associated with the signed request.