@privy-io/react-auth 3.1.0 → 3.2.1
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-F2SljByN.js → SignRequestScreen-BbqNYmhD.js} +5 -5
- package/dist/cjs/abstract-smart-wallets.js +1 -1
- package/dist/cjs/extended-chains.js +1 -1
- package/dist/cjs/index.js +7 -7
- package/dist/cjs/privy-context-CJzQZH6s.js +1 -0
- package/dist/cjs/{smart-wallets-WRYTIHHX.js → smart-wallets-7Aqc5Nzs.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-qW1U5wtK.js → use-export-wallet-sK7TOD-_.js} +1 -1
- package/dist/cjs/{useActiveWallet-CvlTZYB8.js → useActiveWallet-BtCoqsEN.js} +1 -1
- package/dist/cjs/{usePrivy-C6wkayv3.js → usePrivy-B_0-uaxv.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 +17 -5
- package/dist/dts/index.d.ts +17 -5
- 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-DnJ8aMM1.d.mts → types-DbYYrJGX.d.mts} +25 -12
- package/dist/dts/{types-DnJ8aMM1.d.ts → types-DbYYrJGX.d.ts} +25 -12
- package/dist/dts/ui.d.mts +1 -1
- package/dist/dts/ui.d.ts +1 -1
- package/dist/esm/SignRequestScreen-BFYRKL3N.mjs +25 -0
- package/dist/esm/abstract-smart-wallets.mjs +1 -1
- package/dist/esm/extended-chains.mjs +1 -1
- package/dist/esm/index.mjs +6 -6
- package/dist/esm/privy-context-CTKe79J4.mjs +1 -0
- package/dist/esm/{smart-wallets-DkBeBply.mjs → smart-wallets-kAXh6Vvw.mjs} +1 -1
- 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-Io3kYE5d.mjs → use-export-wallet-BxcU5zVQ.mjs} +1 -1
- package/dist/esm/{useActiveWallet-DQFOdruq.mjs → useActiveWallet-LdKZteNM.mjs} +1 -1
- package/dist/esm/{usePrivy-DDM76RFl.mjs → usePrivy-DPEbjcra.mjs} +1 -1
- package/package.json +4 -4
- package/dist/cjs/privy-context-DEEJbS-m.js +0 -1
- package/dist/esm/SignRequestScreen-BQBgOoh_.mjs +0 -25
- package/dist/esm/privy-context-BBJ3MTRg.mjs +0 -1
|
@@ -3,7 +3,7 @@ import { Rpc, SolanaRpcApi, RpcSubscriptions, SolanaRpcSubscriptionsApi } from '
|
|
|
3
3
|
import { ReactElement, ReactNode } from 'react';
|
|
4
4
|
import { Hex } from 'viem';
|
|
5
5
|
import { ChainLikeWithId, ConnectedStandardSolanaWallet, CountryCode, Chain, RpcConfig } from '@privy-io/js-sdk-core';
|
|
6
|
-
import { ChainType, SmartWalletType, CustomMetadataType, PrivyAppResponse, PasskeyAuthenticateInputType } from '@privy-io/public-api';
|
|
6
|
+
import { CustomOAuthProvider, ChainType, SmartWalletType, CustomMetadataType, OAuthProviderType, PrivyAppResponse, PasskeyAuthenticateInputType } from '@privy-io/public-api';
|
|
7
7
|
import { createBaseAccountSDK } from '@base-org/account';
|
|
8
8
|
import { WalletWithFeatures, Wallet as Wallet$1 } from '@wallet-standard/base';
|
|
9
9
|
import { SolanaSignMessageFeature, SolanaSignTransactionFeature, SolanaSignAndSendTransactionFeature, SolanaSignInFeature } from '@solana/wallet-standard-features';
|
|
@@ -346,7 +346,7 @@ type MoonpayUiConfig = {
|
|
|
346
346
|
* Cryptocurrency codes for the MoonPay fiat on-ramp. These codes
|
|
347
347
|
* follow the format {TOKEN_NAME}_{NETWORK_NAME}.
|
|
348
348
|
*/
|
|
349
|
-
type MoonpayCurrencyCode = 'AVAX_CCHAIN' | 'CELO_CELO' | 'CUSD_CELO' | 'DAI_ETHEREUM' | 'ETH_ETHEREUM' | 'ETH_ARBITRUM' | 'ETH_POLYGON' | 'ETH_BASE' | 'FIL_FVM' | 'MATIC_ETHEREUM' | 'MATIC_POLYGON' | 'POL_POLYGON' | 'POL_ETHEREUM' | 'USDC_ETHEREUM' | 'USDC_ARBITRUM' | 'USDC_OPTIMISM' | 'USDC_POLYGON' | 'USDC_BASE' | 'USDT_ETHEREUM' | 'USDT_POLYGON' | 'WETH_POLYGON' | 'WBTC_ETHEREUM' | 'BNB_BNB' | 'BNB_BSC' | 'SOL' | 'USDC_SOL';
|
|
349
|
+
type MoonpayCurrencyCode = 'AVAX_CCHAIN' | 'CELO_CELO' | 'CUSD_CELO' | 'DAI_ETHEREUM' | 'ETH_ETHEREUM' | 'ETH_ARBITRUM' | 'ETH_POLYGON' | 'ETH_BASE' | 'FIL_FVM' | 'MATIC_ETHEREUM' | 'MATIC_POLYGON' | 'POL_POLYGON' | 'POL_ETHEREUM' | 'USDC_ETHEREUM' | 'USDC_ARBITRUM' | 'USDC_OPTIMISM' | 'USDC_POLYGON' | 'USDC_BASE' | 'USDC_CCHAIN' | 'USDT_ETHEREUM' | 'USDT_POLYGON' | 'WETH_POLYGON' | 'WBTC_ETHEREUM' | 'BNB_BNB' | 'BNB_BSC' | 'SOL' | 'USDC_SOL';
|
|
350
350
|
/**
|
|
351
351
|
* Configuration parameter for the MoonPay fiat on-ramp.
|
|
352
352
|
*/
|
|
@@ -383,7 +383,6 @@ type AlchemyPaymasterContextClient = {
|
|
|
383
383
|
policyId: string;
|
|
384
384
|
};
|
|
385
385
|
|
|
386
|
-
declare const SUPPORTED_OAUTH_PROVIDERS: readonly ["google", "discord", "twitter", "github", "spotify", "instagram", "tiktok", "line", "linkedin", "apple"];
|
|
387
386
|
declare const SUPPORTED_RECOVERY_PROVIDERS: readonly ["google-drive", "icloud"];
|
|
388
387
|
declare const SUPPORTED_MFA_METHODS: readonly ["sms", "totp", "passkey"];
|
|
389
388
|
type MfaMethod = (typeof SUPPORTED_MFA_METHODS)[number];
|
|
@@ -393,16 +392,11 @@ type MfaSubmitArgs = {
|
|
|
393
392
|
relyingParty: string;
|
|
394
393
|
};
|
|
395
394
|
type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier';
|
|
396
|
-
/**
|
|
397
|
-
* Supported OAuth providers. Can be `'google'`, `'discord'`, `'twitter'`, `'github'`, `'spotify'`,
|
|
398
|
-
* `'instagram'`, `'tiktok'`, `'line'`, `'linkedin'`, or `'apple'`
|
|
399
|
-
*/
|
|
400
|
-
type OAuthProviderType = (typeof SUPPORTED_OAUTH_PROVIDERS)[number];
|
|
401
395
|
/**
|
|
402
396
|
* Supported OAuth providers for the recovery flow. Can be `'google-drive'`
|
|
403
397
|
*/
|
|
404
398
|
type RecoveryProviderType = (typeof SUPPORTED_RECOVERY_PROVIDERS)[number];
|
|
405
|
-
type LoginMethod = 'email' | 'sms' | 'siwe' | 'siws' | 'farcaster' | OAuthProviderType | 'passkey' | 'telegram' | 'custom' |
|
|
399
|
+
type LoginMethod = 'email' | 'sms' | 'siwe' | 'siws' | 'farcaster' | OAuthProviderType | 'passkey' | 'telegram' | 'custom' | 'guest';
|
|
406
400
|
type LoginWithCode = {
|
|
407
401
|
/**
|
|
408
402
|
* One-time password _([OTP](https://en.wikipedia.org/wiki/One-time_password))_ that was sent to user during first login step
|
|
@@ -431,7 +425,7 @@ type WalletBranding = {
|
|
|
431
425
|
id: string;
|
|
432
426
|
icon?: string | EmbeddedSVG;
|
|
433
427
|
};
|
|
434
|
-
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' | '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' | 'linkedin_oauth' | 'apple_oauth' | 'custom_auth' | 'farcaster' | 'passkey' | 'telegram' | 'cross_app' | 'authorization_key' | CustomOAuthProvider | 'guest';
|
|
435
429
|
/** @ignore */
|
|
436
430
|
interface LinkMetadata {
|
|
437
431
|
/** Account type, most commonly useful when filtering through linkedAccounts */
|
|
@@ -793,6 +787,19 @@ interface Apple {
|
|
|
793
787
|
/** The email associated with the Apple account. */
|
|
794
788
|
email: string;
|
|
795
789
|
}
|
|
790
|
+
/** Object representation of a user's Custom OAuth Account. */
|
|
791
|
+
interface CustomOAuth {
|
|
792
|
+
/** The `sub` claim from the Custom OAuth-issued JWT for this account. */
|
|
793
|
+
subject: string;
|
|
794
|
+
/** The name associated with the Custom OAuth account. */
|
|
795
|
+
name: string | null;
|
|
796
|
+
/** The username associated with the Custom OAuth account. */
|
|
797
|
+
username: string | null;
|
|
798
|
+
/** The email associated with the Custom OAuth account. */
|
|
799
|
+
email: string | null;
|
|
800
|
+
/** The profile picture URL associated with the Custom OAuth account. */
|
|
801
|
+
profilePictureUrl: string | null;
|
|
802
|
+
}
|
|
796
803
|
interface CustomJwtAccount {
|
|
797
804
|
/** The user ID given by the custom auth provider */
|
|
798
805
|
customUserId: string;
|
|
@@ -936,6 +943,11 @@ interface AppleOAuthWithMetadata extends LinkMetadata, Apple {
|
|
|
936
943
|
/** Denotes that this is a Apple account. */
|
|
937
944
|
type: 'apple_oauth';
|
|
938
945
|
}
|
|
946
|
+
/** Object representation of a user's Custom OAuth Account, with additional metadata for advanced use cases. */
|
|
947
|
+
interface CustomOAuthWithMetadata extends LinkMetadata, CustomOAuth {
|
|
948
|
+
/** Denotes that this is a Custom OAuth account. */
|
|
949
|
+
type: CustomOAuthProvider;
|
|
950
|
+
}
|
|
939
951
|
/** Object representation of a user's Custom JWT Account, with additional metadata for advanced use cases. */
|
|
940
952
|
interface CustomJwtAccountWithMetadata extends LinkMetadata, CustomJwtAccount {
|
|
941
953
|
/** Denotes that this is an custom account. */
|
|
@@ -964,7 +976,7 @@ interface CrossAppAccountWithMetadata extends LinkMetadata, CrossAppAccount {
|
|
|
964
976
|
/**
|
|
965
977
|
* Object representation of a user's linked accounts
|
|
966
978
|
*/
|
|
967
|
-
type LinkedAccountWithMetadata = WalletWithMetadata | SmartWalletWithMetadata | EmailWithMetadata | PhoneWithMetadata | GoogleOAuthWithMetadata | TwitterOAuthWithMetadata | DiscordOAuthWithMetadata | GithubOAuthWithMetadata | SpotifyOAuthWithMetadata | InstagramOAuthWithMetadata | TiktokOAuthWithMetadata | LineOAuthWithMetadata | LinkedInOAuthWithMetadata | AppleOAuthWithMetadata | CustomJwtAccountWithMetadata | FarcasterWithMetadata | PasskeyWithMetadata | TelegramWithMetadata | CrossAppAccountWithMetadata;
|
|
979
|
+
type LinkedAccountWithMetadata = WalletWithMetadata | SmartWalletWithMetadata | EmailWithMetadata | PhoneWithMetadata | GoogleOAuthWithMetadata | TwitterOAuthWithMetadata | DiscordOAuthWithMetadata | GithubOAuthWithMetadata | SpotifyOAuthWithMetadata | InstagramOAuthWithMetadata | TiktokOAuthWithMetadata | LineOAuthWithMetadata | LinkedInOAuthWithMetadata | AppleOAuthWithMetadata | CustomOAuthWithMetadata | CustomJwtAccountWithMetadata | FarcasterWithMetadata | PasskeyWithMetadata | TelegramWithMetadata | CrossAppAccountWithMetadata;
|
|
968
980
|
interface User {
|
|
969
981
|
/** The Privy-issued DID for the user. If you need to store additional information
|
|
970
982
|
* about a user, you can use this DID to reference them. */
|
|
@@ -1629,6 +1641,7 @@ type AppConfig = {
|
|
|
1629
1641
|
intl: {
|
|
1630
1642
|
defaultCountry: CountryCode;
|
|
1631
1643
|
};
|
|
1644
|
+
customOAuthProviders: PrivyAppResponse['custom_oauth_providers'];
|
|
1632
1645
|
/**
|
|
1633
1646
|
* Whether the `defaultChain` in the internal config should be enforced on connection requests. This
|
|
1634
1647
|
* gets set to true if the app has explicitly set a `defaultChain`, and false otherwise.
|
|
@@ -2277,4 +2290,4 @@ type EthereumRpcResponseType = eth_signTransactionResponse | eth_populateTransac
|
|
|
2277
2290
|
type SolanaRpcRequestType = solana_signMessage;
|
|
2278
2291
|
type SolanaRpcResponseType = solana_signMessageResponse;
|
|
2279
2292
|
|
|
2280
|
-
export { type
|
|
2293
|
+
export { type OAuthUserInfo as $, type AppConfig as A, type BaseConnectedEthereumWallet as B, type CreateWalletOptions as C, type SignTypedDataParams as D, type EthereumRpcRequestType as E, type MfaMethod as F, type UnsignedTransactionRequest as G, type HDWalletWithMetadata as H, type FundWalletConfig as I, type ConnectedWallet as J, type CrossAppProviderDetails as K, type LoginToMiniApp as L, type MfaSubmitArgs as M, type MoonpaySignRequest as N, type OAuthTokens as O, type PrivyFarcasterSignerInitResponse as P, type MoonpaySignResponse as Q, type RuntimeLoginOverridableOptions as R, type SolanaChain as S, type SmartWalletConfig as T, type User as U, type SiwsMessageType as V, type Wallet as W, type LoginMethod as X, type ExternalWalletMetadata as Y, type TelegramAuthResult as Z, type TelegramWebAppData as _, type SendTransactionModalUIOptions as a, PrivyErrorCode as a0, type LinkedAccountWithMetadata as a1, type BaseConnectedSolanaWallet as a2, type FundingMethod as a3, type OAuthFlowState as a4, type LoginWithCode as a5, type OtpFlowState as a6, type PasskeyFlowState as a7, type SiweFlowState as a8, type BaseAccountSdkType as a9, type GoogleOAuthWithMetadata as aA, type TwitterOAuthWithMetadata as aB, type DiscordOAuthWithMetadata as aC, type GithubOAuthWithMetadata as aD, type TiktokOAuthWithMetadata as aE, type LineOAuthWithMetadata as aF, type LinkedInOAuthWithMetadata as aG, type AppleOAuthWithMetadata as aH, type FarcasterWithMetadata as aI, type TelegramWithMetadata as aJ, type CrossAppAccountWithMetadata as aK, type PasskeyWithMetadata as aL, type Email as aM, type Phone as aN, type TransactionUIOptions as aO, type ContractUIOptions as aP, type NativeFundingConfig as aQ, type PriceDisplayOptions as aR, type Farcaster as aS, type Passkey as aT, type LoginMethodOrderOption as aU, type SiwsFlowState as aV, type UnsignedTransactionRequestWithChainId as aa, type BaseConnectedWalletType as ab, type TelegramAuthFlowState as ac, type TypedMessage as ad, type MessageTypes as ae, type SmartWallet as af, type MoonpayCurrencyCode as ag, type MoonpayPaymentMethod as ah, type Quantity as ai, type TransactionLog as aj, type TransactionReceipt as ak, type NonEmptyArray as al, type EmailWithMetadata as am, type PhoneWithMetadata as an, type WalletWithMetadata as ao, type Google as ap, type Twitter as aq, type Discord as ar, type Github as as, type LinkedIn as at, type Apple as au, type Tiktok as av, type Line as aw, type Telegram as ax, type CrossAppAccount as ay, type LinkedAccountType as az, type SignMessageModalUIOptions as b, type SessionSignerInput as c, type SolanaStandardWallet as d, type SolanaFundingConfig as e, SolanaWalletConnector as f, type UserRecoveryMethod as g, type SolanaRpcRequestType as h, type EthereumRpcResponseType as i, type SolanaRpcResponseType as j, type EIP1193Provider as k, type EntropyIdVerifier as l, type RequestArguments as m, WalletConnector as n, PrivyProxyProvider as o, type WalletClientType as p, type ConnectedWalletMetadata as q, type PrivyClientConfig as r, type ConnectorType as s, toSolanaWalletConnectors as t, type SetBaseAccountSdkType as u, type WalletListEntry as v, type BaseConnectedWallet as w, type ConnectWalletModalOptions as x, type LoginModalOptions as y, type SetWalletRecoveryOptions as z };
|
|
@@ -3,7 +3,7 @@ import { Rpc, SolanaRpcApi, RpcSubscriptions, SolanaRpcSubscriptionsApi } from '
|
|
|
3
3
|
import { ReactElement, ReactNode } from 'react';
|
|
4
4
|
import { Hex } from 'viem';
|
|
5
5
|
import { ChainLikeWithId, ConnectedStandardSolanaWallet, CountryCode, Chain, RpcConfig } from '@privy-io/js-sdk-core';
|
|
6
|
-
import { ChainType, SmartWalletType, CustomMetadataType, PrivyAppResponse, PasskeyAuthenticateInputType } from '@privy-io/public-api';
|
|
6
|
+
import { CustomOAuthProvider, ChainType, SmartWalletType, CustomMetadataType, OAuthProviderType, PrivyAppResponse, PasskeyAuthenticateInputType } from '@privy-io/public-api';
|
|
7
7
|
import { createBaseAccountSDK } from '@base-org/account';
|
|
8
8
|
import { WalletWithFeatures, Wallet as Wallet$1 } from '@wallet-standard/base';
|
|
9
9
|
import { SolanaSignMessageFeature, SolanaSignTransactionFeature, SolanaSignAndSendTransactionFeature, SolanaSignInFeature } from '@solana/wallet-standard-features';
|
|
@@ -346,7 +346,7 @@ type MoonpayUiConfig = {
|
|
|
346
346
|
* Cryptocurrency codes for the MoonPay fiat on-ramp. These codes
|
|
347
347
|
* follow the format {TOKEN_NAME}_{NETWORK_NAME}.
|
|
348
348
|
*/
|
|
349
|
-
type MoonpayCurrencyCode = 'AVAX_CCHAIN' | 'CELO_CELO' | 'CUSD_CELO' | 'DAI_ETHEREUM' | 'ETH_ETHEREUM' | 'ETH_ARBITRUM' | 'ETH_POLYGON' | 'ETH_BASE' | 'FIL_FVM' | 'MATIC_ETHEREUM' | 'MATIC_POLYGON' | 'POL_POLYGON' | 'POL_ETHEREUM' | 'USDC_ETHEREUM' | 'USDC_ARBITRUM' | 'USDC_OPTIMISM' | 'USDC_POLYGON' | 'USDC_BASE' | 'USDT_ETHEREUM' | 'USDT_POLYGON' | 'WETH_POLYGON' | 'WBTC_ETHEREUM' | 'BNB_BNB' | 'BNB_BSC' | 'SOL' | 'USDC_SOL';
|
|
349
|
+
type MoonpayCurrencyCode = 'AVAX_CCHAIN' | 'CELO_CELO' | 'CUSD_CELO' | 'DAI_ETHEREUM' | 'ETH_ETHEREUM' | 'ETH_ARBITRUM' | 'ETH_POLYGON' | 'ETH_BASE' | 'FIL_FVM' | 'MATIC_ETHEREUM' | 'MATIC_POLYGON' | 'POL_POLYGON' | 'POL_ETHEREUM' | 'USDC_ETHEREUM' | 'USDC_ARBITRUM' | 'USDC_OPTIMISM' | 'USDC_POLYGON' | 'USDC_BASE' | 'USDC_CCHAIN' | 'USDT_ETHEREUM' | 'USDT_POLYGON' | 'WETH_POLYGON' | 'WBTC_ETHEREUM' | 'BNB_BNB' | 'BNB_BSC' | 'SOL' | 'USDC_SOL';
|
|
350
350
|
/**
|
|
351
351
|
* Configuration parameter for the MoonPay fiat on-ramp.
|
|
352
352
|
*/
|
|
@@ -383,7 +383,6 @@ type AlchemyPaymasterContextClient = {
|
|
|
383
383
|
policyId: string;
|
|
384
384
|
};
|
|
385
385
|
|
|
386
|
-
declare const SUPPORTED_OAUTH_PROVIDERS: readonly ["google", "discord", "twitter", "github", "spotify", "instagram", "tiktok", "line", "linkedin", "apple"];
|
|
387
386
|
declare const SUPPORTED_RECOVERY_PROVIDERS: readonly ["google-drive", "icloud"];
|
|
388
387
|
declare const SUPPORTED_MFA_METHODS: readonly ["sms", "totp", "passkey"];
|
|
389
388
|
type MfaMethod = (typeof SUPPORTED_MFA_METHODS)[number];
|
|
@@ -393,16 +392,11 @@ type MfaSubmitArgs = {
|
|
|
393
392
|
relyingParty: string;
|
|
394
393
|
};
|
|
395
394
|
type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier';
|
|
396
|
-
/**
|
|
397
|
-
* Supported OAuth providers. Can be `'google'`, `'discord'`, `'twitter'`, `'github'`, `'spotify'`,
|
|
398
|
-
* `'instagram'`, `'tiktok'`, `'line'`, `'linkedin'`, or `'apple'`
|
|
399
|
-
*/
|
|
400
|
-
type OAuthProviderType = (typeof SUPPORTED_OAUTH_PROVIDERS)[number];
|
|
401
395
|
/**
|
|
402
396
|
* Supported OAuth providers for the recovery flow. Can be `'google-drive'`
|
|
403
397
|
*/
|
|
404
398
|
type RecoveryProviderType = (typeof SUPPORTED_RECOVERY_PROVIDERS)[number];
|
|
405
|
-
type LoginMethod = 'email' | 'sms' | 'siwe' | 'siws' | 'farcaster' | OAuthProviderType | 'passkey' | 'telegram' | 'custom' |
|
|
399
|
+
type LoginMethod = 'email' | 'sms' | 'siwe' | 'siws' | 'farcaster' | OAuthProviderType | 'passkey' | 'telegram' | 'custom' | 'guest';
|
|
406
400
|
type LoginWithCode = {
|
|
407
401
|
/**
|
|
408
402
|
* One-time password _([OTP](https://en.wikipedia.org/wiki/One-time_password))_ that was sent to user during first login step
|
|
@@ -431,7 +425,7 @@ type WalletBranding = {
|
|
|
431
425
|
id: string;
|
|
432
426
|
icon?: string | EmbeddedSVG;
|
|
433
427
|
};
|
|
434
|
-
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' | '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' | 'linkedin_oauth' | 'apple_oauth' | 'custom_auth' | 'farcaster' | 'passkey' | 'telegram' | 'cross_app' | 'authorization_key' | CustomOAuthProvider | 'guest';
|
|
435
429
|
/** @ignore */
|
|
436
430
|
interface LinkMetadata {
|
|
437
431
|
/** Account type, most commonly useful when filtering through linkedAccounts */
|
|
@@ -793,6 +787,19 @@ interface Apple {
|
|
|
793
787
|
/** The email associated with the Apple account. */
|
|
794
788
|
email: string;
|
|
795
789
|
}
|
|
790
|
+
/** Object representation of a user's Custom OAuth Account. */
|
|
791
|
+
interface CustomOAuth {
|
|
792
|
+
/** The `sub` claim from the Custom OAuth-issued JWT for this account. */
|
|
793
|
+
subject: string;
|
|
794
|
+
/** The name associated with the Custom OAuth account. */
|
|
795
|
+
name: string | null;
|
|
796
|
+
/** The username associated with the Custom OAuth account. */
|
|
797
|
+
username: string | null;
|
|
798
|
+
/** The email associated with the Custom OAuth account. */
|
|
799
|
+
email: string | null;
|
|
800
|
+
/** The profile picture URL associated with the Custom OAuth account. */
|
|
801
|
+
profilePictureUrl: string | null;
|
|
802
|
+
}
|
|
796
803
|
interface CustomJwtAccount {
|
|
797
804
|
/** The user ID given by the custom auth provider */
|
|
798
805
|
customUserId: string;
|
|
@@ -936,6 +943,11 @@ interface AppleOAuthWithMetadata extends LinkMetadata, Apple {
|
|
|
936
943
|
/** Denotes that this is a Apple account. */
|
|
937
944
|
type: 'apple_oauth';
|
|
938
945
|
}
|
|
946
|
+
/** Object representation of a user's Custom OAuth Account, with additional metadata for advanced use cases. */
|
|
947
|
+
interface CustomOAuthWithMetadata extends LinkMetadata, CustomOAuth {
|
|
948
|
+
/** Denotes that this is a Custom OAuth account. */
|
|
949
|
+
type: CustomOAuthProvider;
|
|
950
|
+
}
|
|
939
951
|
/** Object representation of a user's Custom JWT Account, with additional metadata for advanced use cases. */
|
|
940
952
|
interface CustomJwtAccountWithMetadata extends LinkMetadata, CustomJwtAccount {
|
|
941
953
|
/** Denotes that this is an custom account. */
|
|
@@ -964,7 +976,7 @@ interface CrossAppAccountWithMetadata extends LinkMetadata, CrossAppAccount {
|
|
|
964
976
|
/**
|
|
965
977
|
* Object representation of a user's linked accounts
|
|
966
978
|
*/
|
|
967
|
-
type LinkedAccountWithMetadata = WalletWithMetadata | SmartWalletWithMetadata | EmailWithMetadata | PhoneWithMetadata | GoogleOAuthWithMetadata | TwitterOAuthWithMetadata | DiscordOAuthWithMetadata | GithubOAuthWithMetadata | SpotifyOAuthWithMetadata | InstagramOAuthWithMetadata | TiktokOAuthWithMetadata | LineOAuthWithMetadata | LinkedInOAuthWithMetadata | AppleOAuthWithMetadata | CustomJwtAccountWithMetadata | FarcasterWithMetadata | PasskeyWithMetadata | TelegramWithMetadata | CrossAppAccountWithMetadata;
|
|
979
|
+
type LinkedAccountWithMetadata = WalletWithMetadata | SmartWalletWithMetadata | EmailWithMetadata | PhoneWithMetadata | GoogleOAuthWithMetadata | TwitterOAuthWithMetadata | DiscordOAuthWithMetadata | GithubOAuthWithMetadata | SpotifyOAuthWithMetadata | InstagramOAuthWithMetadata | TiktokOAuthWithMetadata | LineOAuthWithMetadata | LinkedInOAuthWithMetadata | AppleOAuthWithMetadata | CustomOAuthWithMetadata | CustomJwtAccountWithMetadata | FarcasterWithMetadata | PasskeyWithMetadata | TelegramWithMetadata | CrossAppAccountWithMetadata;
|
|
968
980
|
interface User {
|
|
969
981
|
/** The Privy-issued DID for the user. If you need to store additional information
|
|
970
982
|
* about a user, you can use this DID to reference them. */
|
|
@@ -1629,6 +1641,7 @@ type AppConfig = {
|
|
|
1629
1641
|
intl: {
|
|
1630
1642
|
defaultCountry: CountryCode;
|
|
1631
1643
|
};
|
|
1644
|
+
customOAuthProviders: PrivyAppResponse['custom_oauth_providers'];
|
|
1632
1645
|
/**
|
|
1633
1646
|
* Whether the `defaultChain` in the internal config should be enforced on connection requests. This
|
|
1634
1647
|
* gets set to true if the app has explicitly set a `defaultChain`, and false otherwise.
|
|
@@ -2277,4 +2290,4 @@ type EthereumRpcResponseType = eth_signTransactionResponse | eth_populateTransac
|
|
|
2277
2290
|
type SolanaRpcRequestType = solana_signMessage;
|
|
2278
2291
|
type SolanaRpcResponseType = solana_signMessageResponse;
|
|
2279
2292
|
|
|
2280
|
-
export { type
|
|
2293
|
+
export { type OAuthUserInfo as $, type AppConfig as A, type BaseConnectedEthereumWallet as B, type CreateWalletOptions as C, type SignTypedDataParams as D, type EthereumRpcRequestType as E, type MfaMethod as F, type UnsignedTransactionRequest as G, type HDWalletWithMetadata as H, type FundWalletConfig as I, type ConnectedWallet as J, type CrossAppProviderDetails as K, type LoginToMiniApp as L, type MfaSubmitArgs as M, type MoonpaySignRequest as N, type OAuthTokens as O, type PrivyFarcasterSignerInitResponse as P, type MoonpaySignResponse as Q, type RuntimeLoginOverridableOptions as R, type SolanaChain as S, type SmartWalletConfig as T, type User as U, type SiwsMessageType as V, type Wallet as W, type LoginMethod as X, type ExternalWalletMetadata as Y, type TelegramAuthResult as Z, type TelegramWebAppData as _, type SendTransactionModalUIOptions as a, PrivyErrorCode as a0, type LinkedAccountWithMetadata as a1, type BaseConnectedSolanaWallet as a2, type FundingMethod as a3, type OAuthFlowState as a4, type LoginWithCode as a5, type OtpFlowState as a6, type PasskeyFlowState as a7, type SiweFlowState as a8, type BaseAccountSdkType as a9, type GoogleOAuthWithMetadata as aA, type TwitterOAuthWithMetadata as aB, type DiscordOAuthWithMetadata as aC, type GithubOAuthWithMetadata as aD, type TiktokOAuthWithMetadata as aE, type LineOAuthWithMetadata as aF, type LinkedInOAuthWithMetadata as aG, type AppleOAuthWithMetadata as aH, type FarcasterWithMetadata as aI, type TelegramWithMetadata as aJ, type CrossAppAccountWithMetadata as aK, type PasskeyWithMetadata as aL, type Email as aM, type Phone as aN, type TransactionUIOptions as aO, type ContractUIOptions as aP, type NativeFundingConfig as aQ, type PriceDisplayOptions as aR, type Farcaster as aS, type Passkey as aT, type LoginMethodOrderOption as aU, type SiwsFlowState as aV, type UnsignedTransactionRequestWithChainId as aa, type BaseConnectedWalletType as ab, type TelegramAuthFlowState as ac, type TypedMessage as ad, type MessageTypes as ae, type SmartWallet as af, type MoonpayCurrencyCode as ag, type MoonpayPaymentMethod as ah, type Quantity as ai, type TransactionLog as aj, type TransactionReceipt as ak, type NonEmptyArray as al, type EmailWithMetadata as am, type PhoneWithMetadata as an, type WalletWithMetadata as ao, type Google as ap, type Twitter as aq, type Discord as ar, type Github as as, type LinkedIn as at, type Apple as au, type Tiktok as av, type Line as aw, type Telegram as ax, type CrossAppAccount as ay, type LinkedAccountType as az, type SignMessageModalUIOptions as b, type SessionSignerInput as c, type SolanaStandardWallet as d, type SolanaFundingConfig as e, SolanaWalletConnector as f, type UserRecoveryMethod as g, type SolanaRpcRequestType as h, type EthereumRpcResponseType as i, type SolanaRpcResponseType as j, type EIP1193Provider as k, type EntropyIdVerifier as l, type RequestArguments as m, WalletConnector as n, PrivyProxyProvider as o, type WalletClientType as p, type ConnectedWalletMetadata as q, type PrivyClientConfig as r, type ConnectorType as s, toSolanaWalletConnectors as t, type SetBaseAccountSdkType as u, type WalletListEntry as v, type BaseConnectedWallet as w, type ConnectWalletModalOptions as x, type LoginModalOptions as y, type SetWalletRecoveryOptions as z };
|
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-DbYYrJGX.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-DbYYrJGX.js';
|
|
3
3
|
import { Hex } from 'viem';
|
|
4
4
|
import { Chain } from '@privy-io/js-sdk-core';
|
|
5
5
|
import '@coinbase/wallet-sdk';
|