@privy-io/react-auth 1.15.0-beta.1 → 1.15.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/index.d.ts CHANGED
@@ -275,6 +275,7 @@ declare abstract class WalletConnector {
275
275
  abstract disconnect(): void;
276
276
  abstract isConnected(): Promise<boolean>;
277
277
  abstract promptConnection(walletType: WalletType): void;
278
+ setActive(): Promise<boolean>;
278
279
  }
279
280
 
280
281
  /**
@@ -321,6 +322,7 @@ declare class WalletConnectGlobalWalletConnector {
321
322
  declare class ConnectorManager {
322
323
  walletConnectors: WalletConnector[];
323
324
  activeWalletConnector?: WalletConnector;
325
+ initialized: boolean;
324
326
  walletConnectGlobalWalletConnector: WalletConnectGlobalWalletConnector;
325
327
  constructor();
326
328
  initialize(): void;
@@ -335,7 +337,8 @@ declare class ConnectorManager {
335
337
  load(): void;
336
338
  save(): void;
337
339
  addWalletConnector(walletConnector: WalletConnector): void;
338
- removeWallet(address: string): void;
340
+ getConnectorByAddress(address: string): WalletConnector | undefined;
341
+ removeWallet(address: string): Promise<void>;
339
342
  /**
340
343
  * Performing personal_sign with the active wallet
341
344
  * If the active wallet is not connected, we connect it in just-in-time" fashion.
@@ -346,7 +349,7 @@ declare class ConnectorManager {
346
349
  * If the address is null or not found, do nothing and return false.
347
350
  * If the connector was successfully found and set active, return true.
348
351
  */
349
- setActiveWallet(address: string | null): boolean;
352
+ setActiveWallet(address: string | null): Promise<boolean>;
350
353
  createWalletConnector(walletType: WalletType, address: string | null): WalletConnector;
351
354
  }
352
355
 
@@ -483,7 +486,7 @@ interface PrivyInterface {
483
486
  *
484
487
  * Note that when you link a new wallet, it becomes 'active' by default.
485
488
  */
486
- setActiveWallet: (address: string) => void;
489
+ setActiveWallet: (address: string) => Promise<void>;
487
490
  /**
488
491
  * @experimental **Experimental**: This feature is {@link https://docs.privy.io/guide/faq/experimental-features subject to change at any time}.
489
492
  *
@@ -686,7 +689,7 @@ declare class PrivyClient {
686
689
  disableAutoRefresh?: boolean;
687
690
  }): Promise<string | null>;
688
691
  getAppSettings(): Promise<AppSettings>;
689
- setActiveWallet(address: string, user: User): User;
692
+ setActiveWallet(address: string, user: User): Promise<User>;
690
693
  /**
691
694
  * Get a short-lived token to start a new Privy session from the existing authenticated session.
692
695
  *