@privy-io/react-auth 1.26.3-beta.2 → 1.27.0-beta.2
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 -7
- package/dist/index.js +195 -168
- 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;
|
|
@@ -233,11 +233,6 @@ declare class Embedded1193Provider extends EventEmitter implements EIP1193Provid
|
|
|
233
233
|
provider: JsonRpcProvider;
|
|
234
234
|
chainId: number;
|
|
235
235
|
constructor(walletProxy: EmbeddedWalletProxy, address: string, chainId?: number);
|
|
236
|
-
/**
|
|
237
|
-
* Build an infura endpoint for a given chainId if it is one of our
|
|
238
|
-
* supported chains.
|
|
239
|
-
*/
|
|
240
|
-
private getInfuraEndpoint;
|
|
241
236
|
handleSendTransaction(args: RequestArguments): Promise<string>;
|
|
242
237
|
private handleSwitchEthereumChain;
|
|
243
238
|
private handlePersonalSign;
|
|
@@ -420,6 +415,13 @@ interface Wallet {
|
|
|
420
415
|
* like metamask, coinbase, etc.
|
|
421
416
|
*/
|
|
422
417
|
walletClient: 'privy' | 'unknown';
|
|
418
|
+
/**
|
|
419
|
+
* If this is a 'privy' embedded wallet, stores the recovery method:
|
|
420
|
+
*
|
|
421
|
+
* 1. 'privy': privy escrow of the recovery material
|
|
422
|
+
* 2. 'user-passcode': recovery protected by user-input passcode
|
|
423
|
+
*/
|
|
424
|
+
recoveryMethod?: 'privy' | 'user-passcode';
|
|
423
425
|
}
|
|
424
426
|
/**
|
|
425
427
|
* Object representation of a base connected wallet from a wallet connector.
|
|
@@ -677,6 +679,16 @@ type PrivyClientConfig = {
|
|
|
677
679
|
* This overrides the server setting `privacy_policy_url` */
|
|
678
680
|
privacyPolicyUrl?: string | null;
|
|
679
681
|
};
|
|
682
|
+
/** All embedded wallets configuration */
|
|
683
|
+
embeddedWallets?: {
|
|
684
|
+
/**
|
|
685
|
+
* If true, privy will prompt users to create a password for their privy embedded wallet.
|
|
686
|
+
* If false, embedded wallets will be created without the need of password.
|
|
687
|
+
*
|
|
688
|
+
* Defaults to true.
|
|
689
|
+
*/
|
|
690
|
+
requirePassword?: boolean;
|
|
691
|
+
};
|
|
680
692
|
/**
|
|
681
693
|
* Override the default rendering settings, used for displaying in a non-modal setting.
|
|
682
694
|
* For internal use only.
|
|
@@ -1097,6 +1109,7 @@ interface ResponseEthereumAccount {
|
|
|
1097
1109
|
address: string;
|
|
1098
1110
|
chain_type: 'ethereum';
|
|
1099
1111
|
wallet_client: 'privy' | 'unknown';
|
|
1112
|
+
recovery_method?: 'privy' | 'user-passcode';
|
|
1100
1113
|
verified_at: number;
|
|
1101
1114
|
}
|
|
1102
1115
|
interface ResponseOAuthGoogle {
|