@privy-io/react-auth 1.28.0-beta.3 → 1.28.0-beta.4
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 +159 -159
- package/dist/index.d.ts +16 -3
- package/dist/index.js +159 -159
- package/package.json +7 -1
package/dist/index.d.ts
CHANGED
|
@@ -633,6 +633,8 @@ type PrivyServerConfig = {
|
|
|
633
633
|
createdAt?: Date;
|
|
634
634
|
updatedAt?: Date;
|
|
635
635
|
customApiUrl?: string | null;
|
|
636
|
+
walletConnectV2Enabled?: boolean | null;
|
|
637
|
+
walletConnectCloudProjectId?: string | null;
|
|
636
638
|
embeddedWalletConfig: EmbeddedWalletsConfig;
|
|
637
639
|
/** May be deprecated from the server config in a future release */
|
|
638
640
|
logoUrl?: string;
|
|
@@ -683,6 +685,10 @@ type PrivyClientConfig = {
|
|
|
683
685
|
* This overrides the server setting `privacy_policy_url` */
|
|
684
686
|
privacyPolicyUrl?: string | null;
|
|
685
687
|
};
|
|
688
|
+
walletConnectV2?: {
|
|
689
|
+
enabled?: boolean;
|
|
690
|
+
walletConnectCloudProjectId?: string;
|
|
691
|
+
};
|
|
686
692
|
/** All embedded wallets configuration */
|
|
687
693
|
embeddedWallets?: {
|
|
688
694
|
/**
|
|
@@ -835,7 +841,8 @@ declare class ConnectorManager extends EventEmitter<ConnectorManagerEvents> {
|
|
|
835
841
|
initialized: boolean;
|
|
836
842
|
private storedConnections;
|
|
837
843
|
private activeWallet?;
|
|
838
|
-
|
|
844
|
+
private walletConnectCloudProjectId;
|
|
845
|
+
constructor(walletConnectCloudProjectId: string);
|
|
839
846
|
/**
|
|
840
847
|
* The core wallets array that is exposed to developers. It builds
|
|
841
848
|
* the wallets away with the following logic:
|
|
@@ -875,7 +882,7 @@ declare class ConnectorManager extends EventEmitter<ConnectorManagerEvents> {
|
|
|
875
882
|
* Creates a new wallet connector for the given connector type and wallet client type.
|
|
876
883
|
* If a connector already exists, it will be returned instead.
|
|
877
884
|
*/
|
|
878
|
-
createWalletConnector(connectorType: ConnectorType, walletClientType: WalletClientType): WalletConnector | null
|
|
885
|
+
createWalletConnector(connectorType: ConnectorType, walletClientType: WalletClientType): Promise<WalletConnector | null>;
|
|
879
886
|
private addWalletConnector;
|
|
880
887
|
/**
|
|
881
888
|
* Upon initialization, loads previous connections from local storage. If local storage
|
|
@@ -1260,7 +1267,7 @@ declare class PrivyClient {
|
|
|
1260
1267
|
apiUrl: string;
|
|
1261
1268
|
fallbackApiUrl: string;
|
|
1262
1269
|
authFlow?: AuthFlow;
|
|
1263
|
-
connectors
|
|
1270
|
+
connectors?: ConnectorManager;
|
|
1264
1271
|
/**
|
|
1265
1272
|
* Creates a new Privy client.
|
|
1266
1273
|
* @param options Initialization options.
|
|
@@ -1279,6 +1286,12 @@ declare class PrivyClient {
|
|
|
1279
1286
|
*/
|
|
1280
1287
|
timeout?: number;
|
|
1281
1288
|
});
|
|
1289
|
+
/**
|
|
1290
|
+
* ConnectorManager initialization is deferred because the input parameter may be overridden by the server
|
|
1291
|
+
* config. We can set this once and only once. If it is set twice, event listeners will be created
|
|
1292
|
+
* on the first ConnectorManager and are not re-created.
|
|
1293
|
+
*/
|
|
1294
|
+
initializeConnectorManager(walletConnectCloudProjectId: string): void;
|
|
1282
1295
|
generateApi(): Http;
|
|
1283
1296
|
/**
|
|
1284
1297
|
* In the case of cookie-based auth, re-initialize the http client with the custom api url.
|