Package: react-wallet-kit
Overview
Logs in a user using the specified wallet provider.- 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.
Parameters
Response
A successful response returns the following fields:A promise that resolves to a WalletAuthResult, which includes:
sessionToken
: the signed JWT session token.address
: the authenticated wallet address.