@privy-io/react-auth 1.16.0-beta.3 → 1.16.0-beta.5
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 +251 -187
- package/dist/index.d.ts +13 -3
- package/dist/index.js +251 -187
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -505,13 +505,23 @@ interface PrivyInterface {
|
|
|
505
505
|
/**
|
|
506
506
|
* @experimental **Experimental**: This feature is {@link https://docs.privy.io/guide/faq/experimental-features subject to change at any time}.
|
|
507
507
|
*
|
|
508
|
-
* Prompts a user to create an
|
|
508
|
+
* Prompts a user to create an Ethereum wallet through Privy.
|
|
509
|
+
*
|
|
510
|
+
* This function will fail if the user has already created a wallet through Privy,
|
|
511
|
+
* as Privy currently only supports creating one wallet per user.
|
|
512
|
+
*
|
|
513
|
+
* This requires a user to enter a recovery pin that can later be used to recover the
|
|
514
|
+
* wallet or port it across devices.
|
|
509
515
|
*/
|
|
510
516
|
createWallet: () => Promise<Wallet>;
|
|
511
517
|
/**
|
|
512
518
|
* @experimental **Experimental**: This feature is {@link https://docs.privy.io/guide/faq/experimental-features subject to change at any time}.
|
|
513
519
|
*
|
|
514
|
-
* Prompts a user to sign a message
|
|
520
|
+
* Prompts a user to sign a message using their Privy wallet.
|
|
521
|
+
*
|
|
522
|
+
* The resulting signature is an EIP-191 personal_sign signature (0x45).
|
|
523
|
+
*
|
|
524
|
+
* This function currently has a precondition that the user has a Privy wallet. It will fail otherwise.
|
|
515
525
|
*/
|
|
516
526
|
signMessage: (message: string, data?: SignMessageModalUIOptions) => Promise<string>;
|
|
517
527
|
}
|
|
@@ -724,4 +734,4 @@ declare class PrivyClient {
|
|
|
724
734
|
forkSession(): Promise<string>;
|
|
725
735
|
}
|
|
726
736
|
|
|
727
|
-
export { AsExternalProvider, ConnectorManager, Discord, DiscordOAuthWithMetadata, Email, EmailWithMetadata, GithubOAuthWithMetadata, Google, GoogleOAuthWithMetadata, Phone, PhoneWithMetadata, PrivyClient, PrivyInterface, PrivyProvider, PrivyProviderProps, PrivyProxyProvider, Twitter, TwitterOAuthWithMetadata, User, VERSION, Wallet, WalletConnector, WalletWithMetadata, getAccessToken, usePrivy };
|
|
737
|
+
export { AsExternalProvider, ConnectorManager, Discord, DiscordOAuthWithMetadata, Email, EmailWithMetadata, Github, GithubOAuthWithMetadata, Google, GoogleOAuthWithMetadata, Phone, PhoneWithMetadata, PrivyClient, PrivyInterface, PrivyProvider, PrivyProviderProps, PrivyProxyProvider, SignMessageModalUIOptions, Twitter, TwitterOAuthWithMetadata, User, VERSION, Wallet, WalletConnector, WalletWithMetadata, getAccessToken, usePrivy };
|