Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WHAT
Test it in the Naga Explorer app
Quickstart
Wrap your app with
LitAuthProvider, then callshowAuthModal()when you want to prompt login.Auth services (required for non-EOA methods)
If you enable any auth method other than
eoa, you must provide:services.authServiceUrls(per network)services.loginServerUrl(Google/Discord)services.discordClientId(Discord)EOA wallet provider integration (RainbowKit / Wagmi, etc.)
By default, the EOA flow uses
window.ethereum. If your app uses a wallet framework (Wagmi, WalletConnect, custom EIP-1193 provider), pass an EOA wallet provider so the modal can authenticate with the already connected wallet client.Any EIP-1193 provider (WalletConnect / Web3Modal / Privy / Dynamic, etc.)
If your connection layer gives you an EIP-1193 provider, you can adapt it to the modal using
createEoaWalletProvider.Minting PKPs (EOA vs Auth Service)
enabledAuthMethodsincludeseoa): minting is on-chain by default (no Auth Service). The user’s connected wallet signs the transaction, so it must have gas / test tokens.POST /pkp/mint(useful when the user has no gas). This requiresservices.authServiceUrls(andservices.authServiceApiKeyif your Auth Service gates requests).POST /pkp/mint), so you must provideservices.authServiceUrls(and any required API key configuration).