@privy-io/react-auth 1.43.2 → 1.43.3-beta-20231009172743

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -842,7 +842,24 @@ interface Wallet {
842
842
  */
843
843
  chainType: 'ethereum' | 'solana';
844
844
  /**
845
- * CAIP-2 formatted chain ID during the most recent verification.
845
+ * @deprecated Use `BaseConnectedWallet.chainId` instead.
846
+ *
847
+ * ```tsx
848
+ * const {wallets} = useWallets();
849
+ * // Replace wallets[0] with the wallet you'd like
850
+ * const chainId = wallets[0].chainId;
851
+ * console.log(chainId);
852
+ * // This will be the current chain ID of the wallet,
853
+ * // e.g. 'eip155:1' if the wallet is on mainnet
854
+ * ```
855
+ *
856
+ * Represents the CAIP-2 formatted chain ID of the wallet
857
+ * during the most recent verification during SIWE. May not
858
+ * be up to date with the current chain ID of the wallet.
859
+ *
860
+ * Embedded wallets do not complete SIWE since the user is
861
+ * already authenticated, and you should not use this field
862
+ * for the embedded wallet.
846
863
  *
847
864
  * e.g. eip155:1, eip155:5, eip155:137, etc.
848
865
  */