@privy-io/react-auth 1.26.3-beta.2 → 1.27.0-beta.1
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 +196 -169
- package/dist/index.d.ts +20 -2
- package/dist/index.js +194 -167
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -104,7 +104,7 @@ type RpcResponseType = eth_signTransactionResponse | eth_populateTransactionRequ
|
|
|
104
104
|
|
|
105
105
|
type WalletCreateRequestDataType = {
|
|
106
106
|
accessToken: string;
|
|
107
|
-
recoveryPin
|
|
107
|
+
recoveryPin?: string;
|
|
108
108
|
};
|
|
109
109
|
type WalletConnectRequestDataType = {
|
|
110
110
|
accessToken: string;
|
|
@@ -113,7 +113,7 @@ type WalletConnectRequestDataType = {
|
|
|
113
113
|
type WalletRecoverRequestDataType = {
|
|
114
114
|
accessToken: string;
|
|
115
115
|
address: string;
|
|
116
|
-
recoveryPin
|
|
116
|
+
recoveryPin?: string;
|
|
117
117
|
};
|
|
118
118
|
type WalletRpcRequestDataType = {
|
|
119
119
|
accessToken: string;
|
|
@@ -420,6 +420,13 @@ interface Wallet {
|
|
|
420
420
|
* like metamask, coinbase, etc.
|
|
421
421
|
*/
|
|
422
422
|
walletClient: 'privy' | 'unknown';
|
|
423
|
+
/**
|
|
424
|
+
* If this is a 'privy' embedded wallet, stores the recovery method:
|
|
425
|
+
*
|
|
426
|
+
* 1. 'privy': privy escrow of the recovery material
|
|
427
|
+
* 2. 'user-passcode': recovery protected by user-input passcode
|
|
428
|
+
*/
|
|
429
|
+
recoveryMethod?: 'privy' | 'user-passcode';
|
|
423
430
|
}
|
|
424
431
|
/**
|
|
425
432
|
* Object representation of a base connected wallet from a wallet connector.
|
|
@@ -677,6 +684,16 @@ type PrivyClientConfig = {
|
|
|
677
684
|
* This overrides the server setting `privacy_policy_url` */
|
|
678
685
|
privacyPolicyUrl?: string | null;
|
|
679
686
|
};
|
|
687
|
+
/** All embedded wallets configuration */
|
|
688
|
+
embeddedWallets?: {
|
|
689
|
+
/**
|
|
690
|
+
* If true, privy will prompt users to create a password for their privy embedded wallet.
|
|
691
|
+
* If false, embedded wallets will be created without the need of password.
|
|
692
|
+
*
|
|
693
|
+
* Defaults to true.
|
|
694
|
+
*/
|
|
695
|
+
requirePassword?: boolean;
|
|
696
|
+
};
|
|
680
697
|
/**
|
|
681
698
|
* Override the default rendering settings, used for displaying in a non-modal setting.
|
|
682
699
|
* For internal use only.
|
|
@@ -1097,6 +1114,7 @@ interface ResponseEthereumAccount {
|
|
|
1097
1114
|
address: string;
|
|
1098
1115
|
chain_type: 'ethereum';
|
|
1099
1116
|
wallet_client: 'privy' | 'unknown';
|
|
1117
|
+
recovery_method?: 'privy' | 'user-passcode';
|
|
1100
1118
|
verified_at: number;
|
|
1101
1119
|
}
|
|
1102
1120
|
interface ResponseOAuthGoogle {
|