@privy-io/react-auth 1.78.2 → 1.79.0
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/esm/index.js +441 -375
- package/dist/index.d.ts +17 -2
- package/dist/index.js +441 -375
- package/package.json +7 -2
package/dist/index.d.ts
CHANGED
|
@@ -3065,13 +3065,16 @@ interface PrivyInterface {
|
|
|
3065
3065
|
sendTransaction: (data: UnsignedTransactionRequest, uiOptions?: SendTransactionModalUIOptions, fundWalletConfig?: FundWalletConfig) => Promise<TransactionReceipt>;
|
|
3066
3066
|
/**
|
|
3067
3067
|
* Shows the user a Privy modal, from which they can copy their embedded wallet's private
|
|
3068
|
-
* key for easy export to another wallet client (e.g. MetaMask). The private key is loaded
|
|
3068
|
+
* key or seed phrase for easy export to another wallet client (e.g. MetaMask). The private key is loaded
|
|
3069
3069
|
* on an iframe running on a separate domain from your app, meaning your app cannot access it.
|
|
3070
3070
|
*
|
|
3071
3071
|
* This method will error if the user is not authenticated or does not have an embedded wallet.
|
|
3072
|
+
* @param options {@link {address: string}} (optional) wallet address to export the private key for
|
|
3072
3073
|
* @returns Promise that resolves once the user exits the modal
|
|
3073
3074
|
*/
|
|
3074
|
-
exportWallet: (
|
|
3075
|
+
exportWallet: (options?: {
|
|
3076
|
+
address: string;
|
|
3077
|
+
} | MouseEvent<any, any>) => Promise<void>;
|
|
3075
3078
|
/**
|
|
3076
3079
|
* Check whether the Privy Modal is visible.
|
|
3077
3080
|
*/
|
|
@@ -3851,6 +3854,18 @@ interface UseSolanaWalletsInterface {
|
|
|
3851
3854
|
* @returns wallet {Wallet} the Solana linked account for the user.
|
|
3852
3855
|
*/
|
|
3853
3856
|
createWallet: () => Promise<Wallet>;
|
|
3857
|
+
/**
|
|
3858
|
+
* Shows the user a Privy modal, from which they can copy their embedded solana wallet's private
|
|
3859
|
+
* key for easy export to another wallet client (e.g. Phantom, Backpack). The private key is loaded
|
|
3860
|
+
* on an iframe running on a separate domain from your app, meaning your app cannot access it.
|
|
3861
|
+
*
|
|
3862
|
+
* This method will error if the user is not authenticated or does not have an embedded solana wallet.
|
|
3863
|
+
* @param options {@link {address: string}} (optional) wallet address to export the private key for
|
|
3864
|
+
* @returns Promise that resolves once the user exits the modal
|
|
3865
|
+
*/
|
|
3866
|
+
exportWallet: (options?: {
|
|
3867
|
+
address: string;
|
|
3868
|
+
}) => Promise<void>;
|
|
3854
3869
|
}
|
|
3855
3870
|
declare const useSolanaWallets: () => UseSolanaWalletsInterface;
|
|
3856
3871
|
|