@privy-io/react-auth 1.26.1-beta.1 → 1.26.1-beta.11

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
@@ -469,15 +469,14 @@ interface ConnectedWallet extends BaseConnectedWallet {
469
469
  /** True if this wallet is linked to the authenticated user. False if it is not yet linked or
470
470
  * the user has not yet authenticated. */
471
471
  linked: boolean;
472
- /** Link this wallet to the authenticated user. Throws a PrivyClientError if the user is not
473
- * authenticated or if the wallet is not connected. */
474
- link: () => Promise<void>;
472
+ /** Login with this wallet or link this wallet to the authenticated user.
473
+ *
474
+ * Throws a PrivyClientError if the wallet is not connected.
475
+ */
476
+ loginOrLink: () => Promise<void>;
475
477
  /** Unlink this wallet to the authenticated user. Throws a PrivyClientError if the user is not
476
478
  * authenticated. */
477
479
  unlink: () => Promise<void>;
478
- /** Login with this wallet. Throws a PrivyClientError if the user is already authenticated or
479
- * the wallet is not connected. */
480
- login: () => Promise<void>;
481
480
  }
482
481
  /** Object representation of a user's email. */
483
482
  interface Email {
@@ -800,7 +799,7 @@ declare class ConnectorManager extends EventEmitter<ConnectorManagerEvents> {
800
799
  * the wallets away with the following logic:
801
800
  *
802
801
  * 1. Flatten all wallets from all connectors
803
- * 2. Sorted by connectedAT
802
+ * 2. Sorted by connectedAt
804
803
  * 3. Active wallet is moved to front of array (if it exists)
805
804
  */
806
805
  get wallets(): BaseConnectedWallet[];