@privy-io/react-auth 1.15.1-beta.1 → 1.16.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
@@ -185,6 +185,11 @@ interface AllowlistConfig {
185
185
  errorCtaText: string | null;
186
186
  errorCtaLink: string | null;
187
187
  }
188
+ type SignMessageModalUIOptions = {
189
+ title?: string;
190
+ description?: string;
191
+ buttonText?: string;
192
+ };
188
193
 
189
194
  declare function getAccessToken(): Promise<string | null>;
190
195
  /**
@@ -497,6 +502,18 @@ interface PrivyInterface {
497
502
  * Get a short-lived, one-time-use token to start a new Privy session from the existing authenticated session. Raises an exception if the current session was already forked from a previous session.
498
503
  */
499
504
  forkSession: () => Promise<string>;
505
+ /**
506
+ * @experimental **Experimental**: This feature is {@link https://docs.privy.io/guide/faq/experimental-features subject to change at any time}.
507
+ *
508
+ * Prompts a user to create an embedded wallet through Privy.
509
+ */
510
+ createWallet: () => Promise<Wallet>;
511
+ /**
512
+ * @experimental **Experimental**: This feature is {@link https://docs.privy.io/guide/faq/experimental-features subject to change at any time}.
513
+ *
514
+ * Prompts a user to sign a message through Privy.
515
+ */
516
+ signMessage: (message: string, data?: SignMessageModalUIOptions) => Promise<string>;
500
517
  }
501
518
  /**
502
519
  * [React Hook](https://reactjs.org/docs/hooks-intro.html) that allows you to manage the user's current authentication state and access their linked accounts.