@privy-io/react-auth 3.2.1 → 3.3.0
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/cjs/SignRequestScreen-CvBcoZRA.js +27 -0
- package/dist/cjs/abstract-smart-wallets.js +1 -1
- package/dist/cjs/extended-chains.js +1 -1
- package/dist/cjs/getEmbeddedConnectedWallet-6TsVZJkD.js +1 -0
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/privy-context-NMR-GjnL.js +1 -0
- package/dist/cjs/{smart-wallets-7Aqc5Nzs.js → smart-wallets-Cgmp6lBz.js} +1 -1
- package/dist/cjs/smart-wallets.js +1 -1
- package/dist/cjs/solana.js +1 -1
- package/dist/cjs/ui.js +2 -2
- package/dist/cjs/{use-export-wallet-sK7TOD-_.js → use-export-wallet-Crjmwv6E.js} +1 -1
- package/dist/cjs/{useActiveWallet-BtCoqsEN.js → useActiveWallet-DAK4USsc.js} +1 -1
- package/dist/cjs/{usePrivy-B_0-uaxv.js → usePrivy-BQiDRA6a.js} +1 -1
- package/dist/dts/extended-chains.d.mts +1 -1
- package/dist/dts/extended-chains.d.ts +1 -1
- package/dist/dts/farcaster.d.mts +1 -1
- package/dist/dts/farcaster.d.ts +1 -1
- package/dist/dts/index.d.mts +25 -3
- package/dist/dts/index.d.ts +25 -3
- package/dist/dts/smart-wallets.d.mts +1 -1
- package/dist/dts/smart-wallets.d.ts +1 -1
- package/dist/dts/solana.d.mts +2 -2
- package/dist/dts/solana.d.ts +2 -2
- package/dist/dts/{types-DbYYrJGX.d.mts → types-C97UOzaM.d.mts} +18 -3
- package/dist/dts/{types-DbYYrJGX.d.ts → types-C97UOzaM.d.ts} +18 -3
- package/dist/dts/ui.d.mts +1 -1
- package/dist/dts/ui.d.ts +1 -1
- package/dist/esm/{SignRequestScreen-BFYRKL3N.mjs → SignRequestScreen-Dnn_x6kV.mjs} +21 -21
- package/dist/esm/abstract-smart-wallets.mjs +1 -1
- package/dist/esm/extended-chains.mjs +1 -1
- package/dist/esm/getEmbeddedConnectedWallet-CM6cDQCS.mjs +1 -0
- package/dist/esm/index.mjs +6 -6
- package/dist/esm/privy-context-C7K3ZBW-.mjs +1 -0
- package/dist/esm/smart-wallets-D86YXRN5.mjs +1 -0
- package/dist/esm/smart-wallets.mjs +1 -1
- package/dist/esm/solana.mjs +1 -1
- package/dist/esm/ui.mjs +2 -2
- package/dist/esm/use-export-wallet-DVZxxj2x.mjs +1 -0
- package/dist/esm/{useActiveWallet-LdKZteNM.mjs → useActiveWallet-YrSgEFNG.mjs} +1 -1
- package/dist/esm/{usePrivy-DPEbjcra.mjs → usePrivy-CYAVrCyA.mjs} +1 -1
- package/package.json +4 -4
- package/dist/cjs/SignRequestScreen-BbqNYmhD.js +0 -27
- package/dist/cjs/getEmbeddedConnectedWallet-DTU4T9TJ.js +0 -1
- package/dist/cjs/privy-context-CJzQZH6s.js +0 -1
- package/dist/esm/getEmbeddedConnectedWallet-CSSBWE2p.mjs +0 -1
- package/dist/esm/privy-context-CTKe79J4.mjs +0 -1
- package/dist/esm/smart-wallets-kAXh6Vvw.mjs +0 -1
- package/dist/esm/use-export-wallet-BxcU5zVQ.mjs +0 -1
|
@@ -425,7 +425,7 @@ type WalletBranding = {
|
|
|
425
425
|
id: string;
|
|
426
426
|
icon?: string | EmbeddedSVG;
|
|
427
427
|
};
|
|
428
|
-
type LinkedAccountType = 'wallet' | 'smart_wallet' | 'email' | 'phone' | 'google_oauth' | 'twitter_oauth' | 'discord_oauth' | 'github_oauth' | 'spotify_oauth' | 'instagram_oauth' | 'tiktok_oauth' | 'line_oauth' | 'linkedin_oauth' | 'apple_oauth' | 'custom_auth' | 'farcaster' | 'passkey' | 'telegram' | 'cross_app' | 'authorization_key' | CustomOAuthProvider | 'guest';
|
|
428
|
+
type LinkedAccountType = 'wallet' | 'smart_wallet' | 'email' | 'phone' | 'google_oauth' | 'twitter_oauth' | 'discord_oauth' | 'github_oauth' | 'spotify_oauth' | 'instagram_oauth' | 'tiktok_oauth' | 'line_oauth' | 'twitch_oauth' | 'linkedin_oauth' | 'apple_oauth' | 'custom_auth' | 'farcaster' | 'passkey' | 'telegram' | 'cross_app' | 'authorization_key' | CustomOAuthProvider | 'guest';
|
|
429
429
|
/** @ignore */
|
|
430
430
|
interface LinkMetadata {
|
|
431
431
|
/** Account type, most commonly useful when filtering through linkedAccounts */
|
|
@@ -769,6 +769,13 @@ interface Line {
|
|
|
769
769
|
/** The profile image URL associated with the Line account. */
|
|
770
770
|
profilePictureUrl: string | null;
|
|
771
771
|
}
|
|
772
|
+
/** Object representation of a user's Twitch account. */
|
|
773
|
+
interface Twitch {
|
|
774
|
+
/** The unique identifier for the Twitch account. */
|
|
775
|
+
subject: string;
|
|
776
|
+
/** The username associated with the Twitch account. */
|
|
777
|
+
username: string | null;
|
|
778
|
+
}
|
|
772
779
|
/** Object representation of a user's LinkedIn account. */
|
|
773
780
|
interface LinkedIn {
|
|
774
781
|
/** The `sub` claim from the LinkedIn-issued JWT for this account. */
|
|
@@ -933,6 +940,11 @@ interface LineOAuthWithMetadata extends LinkMetadata, Line {
|
|
|
933
940
|
/** Denotes that this is a Line account. */
|
|
934
941
|
type: 'line_oauth';
|
|
935
942
|
}
|
|
943
|
+
/** Object representation of a user's Twitch Account, with additional metadata for advanced use cases. */
|
|
944
|
+
interface TwitchOAuthWithMetadata extends LinkMetadata, Twitch {
|
|
945
|
+
/** Denotes that this is a Twitch account. */
|
|
946
|
+
type: 'twitch_oauth';
|
|
947
|
+
}
|
|
936
948
|
/** Object representation of a user's LinkedIn Account, with additional metadata for advanced use cases. */
|
|
937
949
|
interface LinkedInOAuthWithMetadata extends LinkMetadata, LinkedIn {
|
|
938
950
|
/** Denotes that this is a LinkedIn account. */
|
|
@@ -976,7 +988,7 @@ interface CrossAppAccountWithMetadata extends LinkMetadata, CrossAppAccount {
|
|
|
976
988
|
/**
|
|
977
989
|
* Object representation of a user's linked accounts
|
|
978
990
|
*/
|
|
979
|
-
type LinkedAccountWithMetadata = WalletWithMetadata | SmartWalletWithMetadata | EmailWithMetadata | PhoneWithMetadata | GoogleOAuthWithMetadata | TwitterOAuthWithMetadata | DiscordOAuthWithMetadata | GithubOAuthWithMetadata | SpotifyOAuthWithMetadata | InstagramOAuthWithMetadata | TiktokOAuthWithMetadata | LineOAuthWithMetadata | LinkedInOAuthWithMetadata | AppleOAuthWithMetadata | CustomOAuthWithMetadata | CustomJwtAccountWithMetadata | FarcasterWithMetadata | PasskeyWithMetadata | TelegramWithMetadata | CrossAppAccountWithMetadata;
|
|
991
|
+
type LinkedAccountWithMetadata = WalletWithMetadata | SmartWalletWithMetadata | EmailWithMetadata | PhoneWithMetadata | GoogleOAuthWithMetadata | TwitterOAuthWithMetadata | DiscordOAuthWithMetadata | GithubOAuthWithMetadata | SpotifyOAuthWithMetadata | InstagramOAuthWithMetadata | TiktokOAuthWithMetadata | LineOAuthWithMetadata | TwitchOAuthWithMetadata | LinkedInOAuthWithMetadata | AppleOAuthWithMetadata | CustomOAuthWithMetadata | CustomJwtAccountWithMetadata | FarcasterWithMetadata | PasskeyWithMetadata | TelegramWithMetadata | CrossAppAccountWithMetadata;
|
|
980
992
|
interface User {
|
|
981
993
|
/** The Privy-issued DID for the user. If you need to store additional information
|
|
982
994
|
* about a user, you can use this DID to reference them. */
|
|
@@ -1011,6 +1023,8 @@ interface User {
|
|
|
1011
1023
|
tiktok?: Tiktok;
|
|
1012
1024
|
/** The user's Line account, if they have linked one. It cannot be linked to another user. */
|
|
1013
1025
|
line?: Line;
|
|
1026
|
+
/** The user's Twitch account, if they have linked one. It cannot be linked to another user. */
|
|
1027
|
+
twitch?: Twitch;
|
|
1014
1028
|
/** The user's LinkedIn account, if they have linked one. It cannot be linked to another user. */
|
|
1015
1029
|
linkedin?: LinkedIn;
|
|
1016
1030
|
/** The user's Apple account, if they have linked one. It cannot be linked to another user. */
|
|
@@ -1212,7 +1226,7 @@ interface PrivyClientConfig {
|
|
|
1212
1226
|
*
|
|
1213
1227
|
* If both `loginMethodsAndOrder` and `loginMethods` are defined, `loginMethodsAndOrder` will take precedence.
|
|
1214
1228
|
*/
|
|
1215
|
-
loginMethods?: Array<'wallet' | 'email' | 'sms' | 'google' | 'twitter' | 'discord' | 'github' | 'linkedin' | 'spotify' | 'instagram' | 'tiktok' | 'line' | 'apple' | 'farcaster' | 'telegram' | 'passkey'>;
|
|
1229
|
+
loginMethods?: Array<'wallet' | 'email' | 'sms' | 'google' | 'twitter' | 'discord' | 'github' | 'linkedin' | 'spotify' | 'instagram' | 'tiktok' | 'line' | 'twitch' | 'apple' | 'farcaster' | 'telegram' | 'passkey'>;
|
|
1216
1230
|
/**
|
|
1217
1231
|
* Login methods for the Privy modal. _This will override carefully designed defaults and should be used with caution._
|
|
1218
1232
|
*
|
|
@@ -1621,6 +1635,7 @@ type AppConfig = {
|
|
|
1621
1635
|
instagram?: boolean;
|
|
1622
1636
|
tiktok?: boolean;
|
|
1623
1637
|
line?: boolean;
|
|
1638
|
+
twitch?: boolean;
|
|
1624
1639
|
linkedin?: boolean;
|
|
1625
1640
|
apple?: boolean;
|
|
1626
1641
|
farcaster?: boolean;
|
|
@@ -425,7 +425,7 @@ type WalletBranding = {
|
|
|
425
425
|
id: string;
|
|
426
426
|
icon?: string | EmbeddedSVG;
|
|
427
427
|
};
|
|
428
|
-
type LinkedAccountType = 'wallet' | 'smart_wallet' | 'email' | 'phone' | 'google_oauth' | 'twitter_oauth' | 'discord_oauth' | 'github_oauth' | 'spotify_oauth' | 'instagram_oauth' | 'tiktok_oauth' | 'line_oauth' | 'linkedin_oauth' | 'apple_oauth' | 'custom_auth' | 'farcaster' | 'passkey' | 'telegram' | 'cross_app' | 'authorization_key' | CustomOAuthProvider | 'guest';
|
|
428
|
+
type LinkedAccountType = 'wallet' | 'smart_wallet' | 'email' | 'phone' | 'google_oauth' | 'twitter_oauth' | 'discord_oauth' | 'github_oauth' | 'spotify_oauth' | 'instagram_oauth' | 'tiktok_oauth' | 'line_oauth' | 'twitch_oauth' | 'linkedin_oauth' | 'apple_oauth' | 'custom_auth' | 'farcaster' | 'passkey' | 'telegram' | 'cross_app' | 'authorization_key' | CustomOAuthProvider | 'guest';
|
|
429
429
|
/** @ignore */
|
|
430
430
|
interface LinkMetadata {
|
|
431
431
|
/** Account type, most commonly useful when filtering through linkedAccounts */
|
|
@@ -769,6 +769,13 @@ interface Line {
|
|
|
769
769
|
/** The profile image URL associated with the Line account. */
|
|
770
770
|
profilePictureUrl: string | null;
|
|
771
771
|
}
|
|
772
|
+
/** Object representation of a user's Twitch account. */
|
|
773
|
+
interface Twitch {
|
|
774
|
+
/** The unique identifier for the Twitch account. */
|
|
775
|
+
subject: string;
|
|
776
|
+
/** The username associated with the Twitch account. */
|
|
777
|
+
username: string | null;
|
|
778
|
+
}
|
|
772
779
|
/** Object representation of a user's LinkedIn account. */
|
|
773
780
|
interface LinkedIn {
|
|
774
781
|
/** The `sub` claim from the LinkedIn-issued JWT for this account. */
|
|
@@ -933,6 +940,11 @@ interface LineOAuthWithMetadata extends LinkMetadata, Line {
|
|
|
933
940
|
/** Denotes that this is a Line account. */
|
|
934
941
|
type: 'line_oauth';
|
|
935
942
|
}
|
|
943
|
+
/** Object representation of a user's Twitch Account, with additional metadata for advanced use cases. */
|
|
944
|
+
interface TwitchOAuthWithMetadata extends LinkMetadata, Twitch {
|
|
945
|
+
/** Denotes that this is a Twitch account. */
|
|
946
|
+
type: 'twitch_oauth';
|
|
947
|
+
}
|
|
936
948
|
/** Object representation of a user's LinkedIn Account, with additional metadata for advanced use cases. */
|
|
937
949
|
interface LinkedInOAuthWithMetadata extends LinkMetadata, LinkedIn {
|
|
938
950
|
/** Denotes that this is a LinkedIn account. */
|
|
@@ -976,7 +988,7 @@ interface CrossAppAccountWithMetadata extends LinkMetadata, CrossAppAccount {
|
|
|
976
988
|
/**
|
|
977
989
|
* Object representation of a user's linked accounts
|
|
978
990
|
*/
|
|
979
|
-
type LinkedAccountWithMetadata = WalletWithMetadata | SmartWalletWithMetadata | EmailWithMetadata | PhoneWithMetadata | GoogleOAuthWithMetadata | TwitterOAuthWithMetadata | DiscordOAuthWithMetadata | GithubOAuthWithMetadata | SpotifyOAuthWithMetadata | InstagramOAuthWithMetadata | TiktokOAuthWithMetadata | LineOAuthWithMetadata | LinkedInOAuthWithMetadata | AppleOAuthWithMetadata | CustomOAuthWithMetadata | CustomJwtAccountWithMetadata | FarcasterWithMetadata | PasskeyWithMetadata | TelegramWithMetadata | CrossAppAccountWithMetadata;
|
|
991
|
+
type LinkedAccountWithMetadata = WalletWithMetadata | SmartWalletWithMetadata | EmailWithMetadata | PhoneWithMetadata | GoogleOAuthWithMetadata | TwitterOAuthWithMetadata | DiscordOAuthWithMetadata | GithubOAuthWithMetadata | SpotifyOAuthWithMetadata | InstagramOAuthWithMetadata | TiktokOAuthWithMetadata | LineOAuthWithMetadata | TwitchOAuthWithMetadata | LinkedInOAuthWithMetadata | AppleOAuthWithMetadata | CustomOAuthWithMetadata | CustomJwtAccountWithMetadata | FarcasterWithMetadata | PasskeyWithMetadata | TelegramWithMetadata | CrossAppAccountWithMetadata;
|
|
980
992
|
interface User {
|
|
981
993
|
/** The Privy-issued DID for the user. If you need to store additional information
|
|
982
994
|
* about a user, you can use this DID to reference them. */
|
|
@@ -1011,6 +1023,8 @@ interface User {
|
|
|
1011
1023
|
tiktok?: Tiktok;
|
|
1012
1024
|
/** The user's Line account, if they have linked one. It cannot be linked to another user. */
|
|
1013
1025
|
line?: Line;
|
|
1026
|
+
/** The user's Twitch account, if they have linked one. It cannot be linked to another user. */
|
|
1027
|
+
twitch?: Twitch;
|
|
1014
1028
|
/** The user's LinkedIn account, if they have linked one. It cannot be linked to another user. */
|
|
1015
1029
|
linkedin?: LinkedIn;
|
|
1016
1030
|
/** The user's Apple account, if they have linked one. It cannot be linked to another user. */
|
|
@@ -1212,7 +1226,7 @@ interface PrivyClientConfig {
|
|
|
1212
1226
|
*
|
|
1213
1227
|
* If both `loginMethodsAndOrder` and `loginMethods` are defined, `loginMethodsAndOrder` will take precedence.
|
|
1214
1228
|
*/
|
|
1215
|
-
loginMethods?: Array<'wallet' | 'email' | 'sms' | 'google' | 'twitter' | 'discord' | 'github' | 'linkedin' | 'spotify' | 'instagram' | 'tiktok' | 'line' | 'apple' | 'farcaster' | 'telegram' | 'passkey'>;
|
|
1229
|
+
loginMethods?: Array<'wallet' | 'email' | 'sms' | 'google' | 'twitter' | 'discord' | 'github' | 'linkedin' | 'spotify' | 'instagram' | 'tiktok' | 'line' | 'twitch' | 'apple' | 'farcaster' | 'telegram' | 'passkey'>;
|
|
1216
1230
|
/**
|
|
1217
1231
|
* Login methods for the Privy modal. _This will override carefully designed defaults and should be used with caution._
|
|
1218
1232
|
*
|
|
@@ -1621,6 +1635,7 @@ type AppConfig = {
|
|
|
1621
1635
|
instagram?: boolean;
|
|
1622
1636
|
tiktok?: boolean;
|
|
1623
1637
|
line?: boolean;
|
|
1638
|
+
twitch?: boolean;
|
|
1624
1639
|
linkedin?: boolean;
|
|
1625
1640
|
apple?: boolean;
|
|
1626
1641
|
farcaster?: boolean;
|
package/dist/dts/ui.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-
|
|
2
|
+
import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-C97UOzaM.js';
|
|
3
3
|
import { Hex } from 'viem';
|
|
4
4
|
import { Chain } from '@privy-io/js-sdk-core';
|
|
5
5
|
import '@coinbase/wallet-sdk';
|
package/dist/dts/ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-
|
|
2
|
+
import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-C97UOzaM.js';
|
|
3
3
|
import { Hex } from 'viem';
|
|
4
4
|
import { Chain } from '@privy-io/js-sdk-core';
|
|
5
5
|
import '@coinbase/wallet-sdk';
|