thirdweb 5.58.4 → 5.59.0-nightly-e2b3484764275560aa899f3f894b767faedaa9a1-20240925000331
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/exports/react.js +3 -3
- package/dist/cjs/exports/react.js.map +1 -1
- package/dist/cjs/exports/react.native.js +5 -3
- package/dist/cjs/exports/react.native.js.map +1 -1
- package/dist/cjs/exports/wallets/in-app.js +3 -1
- package/dist/cjs/exports/wallets/in-app.js.map +1 -1
- package/dist/cjs/exports/wallets/in-app.native.js +3 -1
- package/dist/cjs/exports/wallets/in-app.native.js.map +1 -1
- package/dist/cjs/exports/wallets.js +15 -10
- package/dist/cjs/exports/wallets.js.map +1 -1
- package/dist/cjs/exports/wallets.native.js +18 -7
- package/dist/cjs/exports/wallets.native.js.map +1 -1
- package/dist/cjs/react/core/hooks/wallets/{useAdminAccount.js → useAdminWallet.js} +1 -1
- package/dist/cjs/react/core/hooks/wallets/useAdminWallet.js.map +1 -0
- package/dist/cjs/react/{core/hooks/others → native/hooks/wallets}/useProfiles.js +15 -7
- package/dist/cjs/react/native/hooks/wallets/useProfiles.js.map +1 -0
- package/dist/cjs/react/native/ui/connect/ConnectButton.js.map +1 -1
- package/dist/cjs/react/native/ui/connect/ConnectModal.js.map +1 -1
- package/dist/cjs/react/native/ui/connect/WalletLoadingThumbnail.js.map +1 -1
- package/dist/cjs/react/native/ui/transaction/TransactionButton.js.map +1 -1
- package/dist/cjs/react/web/hooks/wallets/useProfiles.js +45 -0
- package/dist/cjs/react/web/hooks/wallets/useProfiles.js.map +1 -0
- package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +6 -3
- package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Details.js +5 -4
- package/dist/cjs/react/web/ui/ConnectWallet/Details.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/NetworkSelector.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/PoweredByTW.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/TransactionsScreen.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/TransactionsScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/DirectPaymentModeScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/BuyTxHistoryButton.js +4 -4
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/BuyTxHistoryButton.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/SwapDetailsScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/SwapStatusScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/TransferConfirmationScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js +4 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/SendFunds.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/StartScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletConnectDisconnectScreen.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletConnectDisconnectScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletConnectReceiverScreen.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletConnectReceiverScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletLogoSpinner.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.js.map +1 -1
- package/dist/cjs/react/web/ui/TransactionButton/ExecutingScreen.js +1 -1
- package/dist/cjs/react/web/ui/TransactionButton/ExecutingScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/TransactionButton/index.js.map +1 -1
- package/dist/cjs/react/web/ui/components/ChainName.js.map +1 -1
- package/dist/cjs/react/web/ui/components/Modal.js +1 -1
- package/dist/cjs/react/web/ui/components/Modal.js.map +1 -1
- package/dist/cjs/react/web/ui/components/basic.js.map +1 -1
- package/dist/cjs/react/web/wallets/in-app/CountrySelector.js +1 -1
- package/dist/cjs/react/web/wallets/in-app/CountrySelector.js.map +1 -1
- package/dist/cjs/react/web/wallets/in-app/WalletAuth.js +5 -4
- package/dist/cjs/react/web/wallets/in-app/WalletAuth.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js +10 -10
- package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/ConnectingScreen.js +1 -1
- package/dist/cjs/react/web/wallets/shared/ConnectingScreen.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/OTPLoginUI.js +4 -3
- package/dist/cjs/react/web/wallets/shared/OTPLoginUI.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js +9 -7
- package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/SocialLogin.js +3 -2
- package/dist/cjs/react/web/wallets/shared/SocialLogin.js.map +1 -1
- package/dist/cjs/storage/upload/web-node.js +6 -0
- package/dist/cjs/storage/upload/web-node.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/cjs/wallets/in-app/core/authentication/client-scoped-storage.js +12 -0
- package/dist/cjs/wallets/in-app/core/authentication/client-scoped-storage.js.map +1 -1
- package/dist/cjs/wallets/in-app/core/authentication/guest.js +13 -1
- package/dist/cjs/wallets/in-app/core/authentication/guest.js.map +1 -1
- package/dist/cjs/wallets/in-app/core/authentication/linkAccount.js +7 -7
- package/dist/cjs/wallets/in-app/core/authentication/linkAccount.js.map +1 -1
- package/dist/cjs/wallets/in-app/core/authentication/types.js.map +1 -1
- package/dist/cjs/wallets/in-app/core/constants/settings.js +6 -1
- package/dist/cjs/wallets/in-app/core/constants/settings.js.map +1 -1
- package/dist/cjs/wallets/in-app/core/wallet/ecosystem-core.js +0 -20
- package/dist/cjs/wallets/in-app/core/wallet/ecosystem-core.js.map +1 -1
- package/dist/cjs/wallets/in-app/core/wallet/in-app-core.js +0 -39
- package/dist/cjs/wallets/in-app/core/wallet/in-app-core.js.map +1 -1
- package/dist/cjs/wallets/in-app/native/auth/index.js +57 -2
- package/dist/cjs/wallets/in-app/native/auth/index.js.map +1 -1
- package/dist/cjs/wallets/in-app/native/auth/native-auth.js +2 -0
- package/dist/cjs/wallets/in-app/native/auth/native-auth.js.map +1 -1
- package/dist/cjs/wallets/in-app/native/native-connector.js +62 -19
- package/dist/cjs/wallets/in-app/native/native-connector.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/actions/sign-message.enclave.js +1 -1
- package/dist/cjs/wallets/in-app/web/lib/actions/sign-message.enclave.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/actions/sign-transaction.enclave.js +1 -1
- package/dist/cjs/wallets/in-app/web/lib/actions/sign-transaction.enclave.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/actions/sign-typed-data.enclave.js +1 -1
- package/dist/cjs/wallets/in-app/web/lib/actions/sign-typed-data.enclave.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/auth/abstract-login.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/auth/iframe-auth.js +2 -8
- package/dist/cjs/wallets/in-app/web/lib/auth/iframe-auth.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/auth/index.js +80 -4
- package/dist/cjs/wallets/in-app/web/lib/auth/index.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/enclave-wallet.js +2 -8
- package/dist/cjs/wallets/in-app/web/lib/enclave-wallet.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/get-auth-token.js +1 -0
- package/dist/cjs/wallets/in-app/web/lib/get-auth-token.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/iframe-wallet.js +2 -8
- package/dist/cjs/wallets/in-app/web/lib/iframe-wallet.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/web-connector.js +32 -0
- package/dist/cjs/wallets/in-app/web/lib/web-connector.js.map +1 -1
- package/dist/esm/exports/react.js +2 -2
- package/dist/esm/exports/react.js.map +1 -1
- package/dist/esm/exports/react.native.js +2 -1
- package/dist/esm/exports/react.native.js.map +1 -1
- package/dist/esm/exports/wallets/in-app.js +1 -1
- package/dist/esm/exports/wallets/in-app.js.map +1 -1
- package/dist/esm/exports/wallets/in-app.native.js +1 -1
- package/dist/esm/exports/wallets/in-app.native.js.map +1 -1
- package/dist/esm/exports/wallets.js +1 -1
- package/dist/esm/exports/wallets.js.map +1 -1
- package/dist/esm/exports/wallets.native.js +4 -0
- package/dist/esm/exports/wallets.native.js.map +1 -1
- package/dist/esm/react/core/hooks/wallets/{useAdminAccount.js → useAdminWallet.js} +1 -1
- package/dist/esm/react/core/hooks/wallets/useAdminWallet.js.map +1 -0
- package/dist/esm/react/{core/hooks/others → native/hooks/wallets}/useProfiles.js +14 -6
- package/dist/esm/react/native/hooks/wallets/useProfiles.js.map +1 -0
- package/dist/esm/react/native/ui/connect/ConnectButton.js.map +1 -1
- package/dist/esm/react/native/ui/connect/ConnectModal.js.map +1 -1
- package/dist/esm/react/native/ui/connect/WalletLoadingThumbnail.js.map +1 -1
- package/dist/esm/react/native/ui/transaction/TransactionButton.js.map +1 -1
- package/dist/esm/react/web/hooks/wallets/useProfiles.js +42 -0
- package/dist/esm/react/web/hooks/wallets/useProfiles.js.map +1 -0
- package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +6 -3
- package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Details.js +4 -3
- package/dist/esm/react/web/ui/ConnectWallet/Details.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/NetworkSelector.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/PoweredByTW.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/TransactionsScreen.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/TransactionsScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/DirectPaymentModeScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js +2 -2
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/BuyTxHistoryButton.js +4 -4
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/BuyTxHistoryButton.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/SwapDetailsScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/SwapStatusScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/TransferConfirmationScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js +4 -2
- package/dist/esm/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/SendFunds.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/StartScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/WalletConnectDisconnectScreen.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/WalletConnectDisconnectScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/WalletConnectReceiverScreen.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/WalletConnectReceiverScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/WalletLogoSpinner.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.js.map +1 -1
- package/dist/esm/react/web/ui/TransactionButton/ExecutingScreen.js +1 -1
- package/dist/esm/react/web/ui/TransactionButton/ExecutingScreen.js.map +1 -1
- package/dist/esm/react/web/ui/TransactionButton/index.js.map +1 -1
- package/dist/esm/react/web/ui/components/ChainName.js.map +1 -1
- package/dist/esm/react/web/ui/components/Modal.js +1 -1
- package/dist/esm/react/web/ui/components/Modal.js.map +1 -1
- package/dist/esm/react/web/ui/components/basic.js.map +1 -1
- package/dist/esm/react/web/wallets/in-app/CountrySelector.js +1 -1
- package/dist/esm/react/web/wallets/in-app/CountrySelector.js.map +1 -1
- package/dist/esm/react/web/wallets/in-app/WalletAuth.js +3 -2
- package/dist/esm/react/web/wallets/in-app/WalletAuth.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js +2 -2
- package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/ConnectingScreen.js +1 -1
- package/dist/esm/react/web/wallets/shared/ConnectingScreen.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/OTPLoginUI.js +5 -4
- package/dist/esm/react/web/wallets/shared/OTPLoginUI.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/PassKeyLogin.js +5 -3
- package/dist/esm/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/SocialLogin.js +3 -2
- package/dist/esm/react/web/wallets/shared/SocialLogin.js.map +1 -1
- package/dist/esm/storage/upload/web-node.js +6 -0
- package/dist/esm/storage/upload/web-node.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/esm/wallets/in-app/core/authentication/client-scoped-storage.js +13 -1
- package/dist/esm/wallets/in-app/core/authentication/client-scoped-storage.js.map +1 -1
- package/dist/esm/wallets/in-app/core/authentication/guest.js +13 -1
- package/dist/esm/wallets/in-app/core/authentication/guest.js.map +1 -1
- package/dist/esm/wallets/in-app/core/authentication/linkAccount.js +7 -7
- package/dist/esm/wallets/in-app/core/authentication/linkAccount.js.map +1 -1
- package/dist/esm/wallets/in-app/core/authentication/types.js.map +1 -1
- package/dist/esm/wallets/in-app/core/constants/settings.js +4 -0
- package/dist/esm/wallets/in-app/core/constants/settings.js.map +1 -1
- package/dist/esm/wallets/in-app/core/wallet/ecosystem-core.js +0 -20
- package/dist/esm/wallets/in-app/core/wallet/ecosystem-core.js.map +1 -1
- package/dist/esm/wallets/in-app/core/wallet/in-app-core.js +0 -39
- package/dist/esm/wallets/in-app/core/wallet/in-app-core.js.map +1 -1
- package/dist/esm/wallets/in-app/native/auth/index.js +55 -2
- package/dist/esm/wallets/in-app/native/auth/index.js.map +1 -1
- package/dist/esm/wallets/in-app/native/auth/native-auth.js +2 -0
- package/dist/esm/wallets/in-app/native/auth/native-auth.js.map +1 -1
- package/dist/esm/wallets/in-app/native/native-connector.js +62 -19
- package/dist/esm/wallets/in-app/native/native-connector.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/actions/sign-message.enclave.js +1 -1
- package/dist/esm/wallets/in-app/web/lib/actions/sign-message.enclave.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/actions/sign-transaction.enclave.js +1 -1
- package/dist/esm/wallets/in-app/web/lib/actions/sign-transaction.enclave.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/actions/sign-typed-data.enclave.js +1 -1
- package/dist/esm/wallets/in-app/web/lib/actions/sign-typed-data.enclave.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/auth/abstract-login.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/auth/iframe-auth.js +2 -8
- package/dist/esm/wallets/in-app/web/lib/auth/iframe-auth.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/auth/index.js +77 -4
- package/dist/esm/wallets/in-app/web/lib/auth/index.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/enclave-wallet.js +2 -8
- package/dist/esm/wallets/in-app/web/lib/enclave-wallet.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/get-auth-token.js +1 -0
- package/dist/esm/wallets/in-app/web/lib/get-auth-token.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/iframe-wallet.js +2 -8
- package/dist/esm/wallets/in-app/web/lib/iframe-wallet.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/web-connector.js +32 -0
- package/dist/esm/wallets/in-app/web/lib/web-connector.js.map +1 -1
- package/dist/types/exports/react.d.ts +2 -2
- package/dist/types/exports/react.d.ts.map +1 -1
- package/dist/types/exports/react.native.d.ts +2 -1
- package/dist/types/exports/react.native.d.ts.map +1 -1
- package/dist/types/exports/wallets/in-app.d.ts +1 -1
- package/dist/types/exports/wallets/in-app.d.ts.map +1 -1
- package/dist/types/exports/wallets/in-app.native.d.ts +1 -1
- package/dist/types/exports/wallets/in-app.native.d.ts.map +1 -1
- package/dist/types/exports/wallets.d.ts +1 -1
- package/dist/types/exports/wallets.d.ts.map +1 -1
- package/dist/types/exports/wallets.native.d.ts +2 -0
- package/dist/types/exports/wallets.native.d.ts.map +1 -1
- package/dist/types/react/core/hooks/wallets/useActiveAccount.d.ts +1 -1
- package/dist/types/react/core/hooks/wallets/useActiveAccount.d.ts.map +1 -1
- package/dist/types/react/core/hooks/wallets/useActiveWallet.d.ts +1 -1
- package/dist/types/react/core/hooks/wallets/useActiveWallet.d.ts.map +1 -1
- package/dist/types/react/core/hooks/wallets/useActiveWalletConnectionStatus.d.ts +1 -1
- package/dist/types/react/core/hooks/wallets/useActiveWalletConnectionStatus.d.ts.map +1 -1
- package/dist/types/react/core/hooks/wallets/useAddConnectedWallet.d.ts +1 -1
- package/dist/types/react/core/hooks/wallets/useAddConnectedWallet.d.ts.map +1 -1
- package/dist/types/react/core/hooks/wallets/{useAdminAccount.d.ts → useAdminWallet.d.ts} +2 -2
- package/dist/types/react/core/hooks/wallets/useAdminWallet.d.ts.map +1 -0
- package/dist/types/react/core/hooks/wallets/useConnectedWallets.d.ts +1 -1
- package/dist/types/react/core/hooks/wallets/useConnectedWallets.d.ts.map +1 -1
- package/dist/types/react/core/hooks/wallets/useDisconnect.d.ts +1 -1
- package/dist/types/react/core/hooks/wallets/useSetActiveWallet.d.ts +1 -1
- package/dist/types/react/core/hooks/wallets/useSetActiveWallet.d.ts.map +1 -1
- package/dist/types/react/core/hooks/wallets/useSetActiveWalletConnectionStatus.d.ts +1 -1
- package/dist/types/react/core/hooks/wallets/useSetActiveWalletConnectionStatus.d.ts.map +1 -1
- package/dist/types/react/core/providers/connection-manager.d.ts +27 -27
- package/dist/types/react/{core/hooks/others → native/hooks/wallets}/useProfiles.d.ts +8 -3
- package/dist/types/react/native/hooks/wallets/useProfiles.d.ts.map +1 -0
- package/dist/types/react/web/hooks/wallets/useProfiles.d.ts +28 -0
- package/dist/types/react/web/hooks/wallets/useProfiles.d.ts.map +1 -0
- package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Details.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.d.ts.map +1 -1
- package/dist/types/react/web/ui/MediaRenderer/ModelViewer.d.ts +1 -1
- package/dist/types/react/web/wallets/in-app/WalletAuth.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/OTPLoginUI.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/PassKeyLogin.d.ts +1 -1
- package/dist/types/react/web/wallets/shared/PassKeyLogin.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/SocialLogin.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/oauthSignIn.d.ts +1 -2
- package/dist/types/react/web/wallets/shared/oauthSignIn.d.ts.map +1 -1
- package/dist/types/storage/upload/web-node.d.ts.map +1 -1
- package/dist/types/utils/fetch.d.ts +1 -1
- package/dist/types/utils/fetch.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/version.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/authentication/client-scoped-storage.d.ts +8 -0
- package/dist/types/wallets/in-app/core/authentication/client-scoped-storage.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/authentication/getLoginPath.d.ts +1 -1
- package/dist/types/wallets/in-app/core/authentication/guest.d.ts +3 -1
- package/dist/types/wallets/in-app/core/authentication/guest.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/authentication/linkAccount.d.ts +6 -3
- package/dist/types/wallets/in-app/core/authentication/linkAccount.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/authentication/passkeys.d.ts +1 -1
- package/dist/types/wallets/in-app/core/authentication/siwe.d.ts +1 -1
- package/dist/types/wallets/in-app/core/authentication/types.d.ts +4 -3
- package/dist/types/wallets/in-app/core/authentication/types.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/constants/settings.d.ts +4 -0
- package/dist/types/wallets/in-app/core/constants/settings.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/interfaces/connector.d.ts +3 -1
- package/dist/types/wallets/in-app/core/interfaces/connector.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/wallet/ecosystem-core.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/wallet/in-app-core.d.ts +1 -1
- package/dist/types/wallets/in-app/core/wallet/in-app-core.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/wallet/types.d.ts +5 -0
- package/dist/types/wallets/in-app/core/wallet/types.d.ts.map +1 -1
- package/dist/types/wallets/in-app/native/auth/index.d.ts +48 -2
- package/dist/types/wallets/in-app/native/auth/index.d.ts.map +1 -1
- package/dist/types/wallets/in-app/native/auth/native-auth.d.ts +1 -1
- package/dist/types/wallets/in-app/native/auth/native-auth.d.ts.map +1 -1
- package/dist/types/wallets/in-app/native/native-connector.d.ts +8 -2
- package/dist/types/wallets/in-app/native/native-connector.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/generate-wallet.enclave.d.ts +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/generate-wallet.enclave.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/get-enclave-user-status.d.ts +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/get-enclave-user-status.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/sign-message.enclave.d.ts +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/sign-message.enclave.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/sign-transaction.enclave.d.ts +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/sign-transaction.enclave.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/sign-typed-data.enclave.d.ts +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/sign-typed-data.enclave.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/abstract-login.d.ts +2 -1
- package/dist/types/wallets/in-app/web/lib/auth/abstract-login.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/iframe-auth.d.ts +5 -3
- package/dist/types/wallets/in-app/web/lib/auth/iframe-auth.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/index.d.ts +68 -8
- package/dist/types/wallets/in-app/web/lib/auth/index.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/oauth.d.ts +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/oauth.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/otp.d.ts +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/otp.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/enclave-wallet.d.ts +8 -7
- package/dist/types/wallets/in-app/web/lib/enclave-wallet.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/get-auth-token.d.ts +1 -1
- package/dist/types/wallets/in-app/web/lib/get-auth-token.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/iframe-wallet.d.ts +5 -3
- package/dist/types/wallets/in-app/web/lib/iframe-wallet.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/web-connector.d.ts +9 -8
- package/dist/types/wallets/in-app/web/lib/web-connector.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/types.d.ts +1 -5
- package/dist/types/wallets/in-app/web/types.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/utils/iFrameCommunication/InAppWalletIframeCommunicator.d.ts +1 -1
- package/dist/types/wallets/in-app/web/utils/iFrameCommunication/InAppWalletIframeCommunicator.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/exports/react.native.ts +2 -1
- package/src/exports/react.ts +2 -2
- package/src/exports/wallets/in-app.native.ts +2 -0
- package/src/exports/wallets/in-app.ts +2 -0
- package/src/exports/wallets.native.ts +12 -0
- package/src/exports/wallets.ts +6 -1
- package/src/react/{core/hooks/others → native/hooks/wallets}/useProfiles.ts +19 -8
- package/src/react/native/ui/connect/ConnectButton.tsx +1 -1
- package/src/react/native/ui/connect/ConnectModal.tsx +1 -1
- package/src/react/native/ui/connect/WalletLoadingThumbnail.tsx +1 -1
- package/src/react/native/ui/transaction/TransactionButton.tsx +1 -1
- package/src/react/web/hooks/wallets/useProfiles.ts +48 -0
- package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +6 -9
- package/src/react/web/ui/ConnectWallet/Details.tsx +11 -12
- package/src/react/web/ui/ConnectWallet/Modal/AllWalletsUI.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.tsx +0 -1
- package/src/react/web/ui/ConnectWallet/NetworkSelector.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/PoweredByTW.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/TransactionsScreen.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx +4 -1
- package/src/react/web/ui/ConnectWallet/screens/Buy/DirectPaymentModeScreen.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.tsx +1 -2
- package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.tsx +2 -2
- package/src/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/BuyTxHistoryButton.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/SwapDetailsScreen.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.tsx +1 -2
- package/src/react/web/ui/ConnectWallet/screens/Buy/swap/SwapStatusScreen.tsx +4 -4
- package/src/react/web/ui/ConnectWallet/screens/Buy/swap/TransferConfirmationScreen.tsx +2 -2
- package/src/react/web/ui/ConnectWallet/screens/LinkProfileScreen.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.tsx +4 -2
- package/src/react/web/ui/ConnectWallet/screens/ManageWalletScreen.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/SendFunds.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/SignatureScreen.tsx +2 -2
- package/src/react/web/ui/ConnectWallet/screens/StartScreen.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/WalletConnectDisconnectScreen.tsx +2 -2
- package/src/react/web/ui/ConnectWallet/screens/WalletConnectReceiverScreen.tsx +2 -2
- package/src/react/web/ui/ConnectWallet/screens/WalletLogoSpinner.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.tsx +2 -2
- package/src/react/web/ui/TransactionButton/ExecutingScreen.tsx +1 -1
- package/src/react/web/ui/TransactionButton/index.tsx +1 -1
- package/src/react/web/ui/components/ChainName.tsx +1 -1
- package/src/react/web/ui/components/Modal.tsx +1 -1
- package/src/react/web/ui/components/basic.tsx +1 -1
- package/src/react/web/wallets/in-app/CountrySelector.tsx +1 -1
- package/src/react/web/wallets/in-app/WalletAuth.tsx +3 -2
- package/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx +3 -3
- package/src/react/web/wallets/shared/ConnectingScreen.tsx +1 -1
- package/src/react/web/wallets/shared/OTPLoginUI.tsx +8 -4
- package/src/react/web/wallets/shared/PassKeyLogin.tsx +6 -3
- package/src/react/web/wallets/shared/SocialLogin.tsx +3 -2
- package/src/react/web/wallets/shared/oauthSignIn.ts +1 -1
- package/src/storage/upload/web-node.ts +10 -0
- package/src/utils/fetch.test.ts +1 -1
- package/src/utils/fetch.ts +1 -1
- package/src/version.ts +1 -1
- package/src/wallets/in-app/core/authentication/client-scoped-storage.ts +14 -0
- package/src/wallets/in-app/core/authentication/getLoginPath.ts +1 -1
- package/src/wallets/in-app/core/authentication/guest.ts +18 -2
- package/src/wallets/in-app/core/authentication/linkAccount.ts +15 -11
- package/src/wallets/in-app/core/authentication/passkeys.ts +1 -1
- package/src/wallets/in-app/core/authentication/siwe.ts +1 -1
- package/src/wallets/in-app/core/authentication/types.ts +10 -8
- package/src/wallets/in-app/core/constants/settings.ts +6 -0
- package/src/wallets/in-app/core/interfaces/connector.ts +4 -0
- package/src/wallets/in-app/core/wallet/ecosystem-core.ts +1 -40
- package/src/wallets/in-app/core/wallet/in-app-core.ts +1 -58
- package/src/wallets/in-app/core/wallet/types.ts +6 -0
- package/src/wallets/in-app/native/auth/index.ts +62 -6
- package/src/wallets/in-app/native/auth/native-auth.ts +3 -1
- package/src/wallets/in-app/native/native-connector.ts +54 -27
- package/src/wallets/in-app/web/lib/actions/generate-wallet.enclave.ts +1 -1
- package/src/wallets/in-app/web/lib/actions/get-enclave-user-status.ts +1 -1
- package/src/wallets/in-app/web/lib/actions/sign-message.enclave.ts +2 -2
- package/src/wallets/in-app/web/lib/actions/sign-transaction.enclave.ts +2 -2
- package/src/wallets/in-app/web/lib/actions/sign-typed-data.enclave.ts +2 -2
- package/src/wallets/in-app/web/lib/auth/abstract-login.ts +2 -1
- package/src/wallets/in-app/web/lib/auth/iframe-auth.ts +6 -8
- package/src/wallets/in-app/web/lib/auth/index.ts +89 -19
- package/src/wallets/in-app/web/lib/auth/oauth.ts +1 -1
- package/src/wallets/in-app/web/lib/auth/otp.ts +1 -1
- package/src/wallets/in-app/web/lib/enclave-wallet.ts +9 -13
- package/src/wallets/in-app/web/lib/get-auth-token.ts +2 -1
- package/src/wallets/in-app/web/lib/iframe-wallet.ts +5 -9
- package/src/wallets/in-app/web/lib/web-connector.ts +38 -4
- package/src/wallets/in-app/web/types.ts +1 -6
- package/src/wallets/in-app/web/utils/iFrameCommunication/InAppWalletIframeCommunicator.ts +1 -1
- package/dist/cjs/react/core/hooks/others/useProfiles.js.map +0 -1
- package/dist/cjs/react/core/hooks/wallets/useAdminAccount.js.map +0 -1
- package/dist/cjs/wallets/in-app/core/wallet/profiles.js +0 -61
- package/dist/cjs/wallets/in-app/core/wallet/profiles.js.map +0 -1
- package/dist/esm/react/core/hooks/others/useProfiles.js.map +0 -1
- package/dist/esm/react/core/hooks/wallets/useAdminAccount.js.map +0 -1
- package/dist/esm/wallets/in-app/core/wallet/profiles.js +0 -57
- package/dist/esm/wallets/in-app/core/wallet/profiles.js.map +0 -1
- package/dist/types/react/core/hooks/others/useProfiles.d.ts.map +0 -1
- package/dist/types/react/core/hooks/wallets/useAdminAccount.d.ts.map +0 -1
- package/dist/types/wallets/in-app/core/wallet/profiles.d.ts +0 -49
- package/dist/types/wallets/in-app/core/wallet/profiles.d.ts.map +0 -1
- package/src/wallets/in-app/core/wallet/profiles.ts +0 -76
- /package/src/react/core/hooks/wallets/{useAdminAccount.ts → useAdminWallet.ts} +0 -0
@@ -3,9 +3,9 @@ import type { ThirdwebClient } from "../../../../../client/client.js";
|
|
3
3
|
import { shortenAddress } from "../../../../../utils/address.js";
|
4
4
|
import type { Profile } from "../../../../../wallets/in-app/core/authentication/types.js";
|
5
5
|
import { fontSize, iconSize } from "../../../../core/design-system/index.js";
|
6
|
-
import { useProfiles } from "../../../../core/hooks/others/useProfiles.js";
|
7
6
|
import { useSocialProfiles } from "../../../../core/social/useSocialProfiles.js";
|
8
7
|
import { getWalletIcon } from "../../../../core/utils/walletIcon.js";
|
8
|
+
import { useProfiles } from "../../../hooks/wallets/useProfiles.js";
|
9
9
|
import { LoadingScreen } from "../../../wallets/shared/LoadingScreen.js";
|
10
10
|
import { Img } from "../../components/Img.js";
|
11
11
|
import { Spacer } from "../../components/Spacer.js";
|
@@ -44,7 +44,9 @@ export function LinkedProfilesScreen(props: {
|
|
44
44
|
locale: ConnectLocale;
|
45
45
|
client: ThirdwebClient;
|
46
46
|
}) {
|
47
|
-
const { data: connectedProfiles, isLoading } = useProfiles(
|
47
|
+
const { data: connectedProfiles, isLoading } = useProfiles({
|
48
|
+
client: props.client,
|
49
|
+
});
|
48
50
|
|
49
51
|
if (isLoading) {
|
50
52
|
return <LoadingScreen />;
|
@@ -6,7 +6,7 @@ import { isInAppWallet } from "../../../../../wallets/in-app/core/wallet/index.j
|
|
6
6
|
import { injectedProvider } from "../../../../../wallets/injected/mipdStore.js";
|
7
7
|
import { fontSize, iconSize } from "../../../../core/design-system/index.js";
|
8
8
|
import { useActiveWallet } from "../../../../core/hooks/wallets/useActiveWallet.js";
|
9
|
-
import { useAdminWallet } from "../../../../core/hooks/wallets/
|
9
|
+
import { useAdminWallet } from "../../../../core/hooks/wallets/useAdminWallet.js";
|
10
10
|
import { Spacer } from "../../components/Spacer.js";
|
11
11
|
import { Container, Line, ModalHeader } from "../../components/basic.js";
|
12
12
|
import { Text } from "../../components/text.js";
|
@@ -13,7 +13,7 @@ import { useSiweAuth } from "../../../../core/hooks/auth/useSiweAuth.js";
|
|
13
13
|
import type { ConnectButtonProps } from "../../../../core/hooks/connection/ConnectButtonProps.js";
|
14
14
|
import { useActiveAccount } from "../../../../core/hooks/wallets/useActiveAccount.js";
|
15
15
|
import { useActiveWallet } from "../../../../core/hooks/wallets/useActiveWallet.js";
|
16
|
-
import { useAdminWallet } from "../../../../core/hooks/wallets/
|
16
|
+
import { useAdminWallet } from "../../../../core/hooks/wallets/useAdminWallet.js";
|
17
17
|
import { useDisconnect } from "../../../../core/hooks/wallets/useDisconnect.js";
|
18
18
|
import { wait } from "../../../../core/utils/wait.js";
|
19
19
|
import { LoadingScreen } from "../../../wallets/shared/LoadingScreen.js";
|
@@ -115,7 +115,7 @@ export const SignatureScreen: React.FC<{
|
|
115
115
|
<>
|
116
116
|
<Container flex="row" center="x" animate="fadein" py="3xl">
|
117
117
|
<PulsatingContainer>
|
118
|
-
<WalletImage id={wallet.id} client={props.client} size=
|
118
|
+
<WalletImage id={wallet.id} client={props.client} size="80" />
|
119
119
|
</PulsatingContainer>
|
120
120
|
</Container>
|
121
121
|
|
@@ -41,7 +41,7 @@ export function WalletConnectDisconnectScreen(props: {
|
|
41
41
|
<WalletLogoSpinner
|
42
42
|
client={props.client}
|
43
43
|
error={!!props.error}
|
44
|
-
id=
|
44
|
+
id="walletConnect"
|
45
45
|
hideSpinner={true}
|
46
46
|
/>
|
47
47
|
</Container>
|
@@ -83,7 +83,7 @@ export function WalletConnectDisconnectScreen(props: {
|
|
83
83
|
alignItems: "center",
|
84
84
|
}}
|
85
85
|
>
|
86
|
-
<ReloadIcon width={iconSize.sm} height={iconSize.sm} />
|
86
|
+
<ReloadIcon width={iconSize.sm} height={iconSize.sm} />
|
87
87
|
Retry
|
88
88
|
</Button>
|
89
89
|
</Container>
|
@@ -133,7 +133,7 @@ export function WalletConnectReceiverScreen(props: {
|
|
133
133
|
<WalletLogoSpinner
|
134
134
|
client={props.client}
|
135
135
|
error={!!errorConnecting}
|
136
|
-
id=
|
136
|
+
id="walletConnect"
|
137
137
|
hideSpinner={!loading}
|
138
138
|
/>
|
139
139
|
</Container>
|
@@ -193,7 +193,7 @@ export function WalletConnectReceiverScreen(props: {
|
|
193
193
|
alignItems: "center",
|
194
194
|
}}
|
195
195
|
>
|
196
|
-
<ReloadIcon width={iconSize.sm} height={iconSize.sm} />
|
196
|
+
<ReloadIcon width={iconSize.sm} height={iconSize.sm} />
|
197
197
|
Retry
|
198
198
|
</Button>
|
199
199
|
</Container>
|
@@ -176,12 +176,12 @@ function TransactionButton(props: {
|
|
176
176
|
<Container flex="row" gap="xxs" center="y">
|
177
177
|
{isLoading && <Spinner size="sm" color="primaryText" />}
|
178
178
|
{!isLoading && receipt && receipt.status === "success" && (
|
179
|
-
<Text size="md" color=
|
179
|
+
<Text size="md" color="success">
|
180
180
|
<CheckIcon width={iconSize.md} height={iconSize.md} />
|
181
181
|
</Text>
|
182
182
|
)}
|
183
183
|
{(error || (!isLoading && receipt && receipt.status !== "success")) && (
|
184
|
-
<Text size="md" color=
|
184
|
+
<Text size="md" color="danger">
|
185
185
|
<CrossCircledIcon width={iconSize.md} height={iconSize.md} />
|
186
186
|
</Text>
|
187
187
|
)}
|
@@ -156,7 +156,7 @@ export function TransactionButton(props: TransactionButtonProps) {
|
|
156
156
|
<Button
|
157
157
|
gap="xs"
|
158
158
|
disabled={!account || disabled || isPending}
|
159
|
-
variant=
|
159
|
+
variant="primary"
|
160
160
|
unstyled={unstyled}
|
161
161
|
data-is-loading={isPending}
|
162
162
|
onClick={() => handleClick()}
|
@@ -60,7 +60,7 @@ export function CountrySelector({
|
|
60
60
|
key={country.countryIsoCode}
|
61
61
|
value={`${country.countryIsoCode} +${country.phoneNumberCode}`}
|
62
62
|
>
|
63
|
-
{country.countryName} +{country.phoneNumberCode}
|
63
|
+
{country.countryName} +{country.phoneNumberCode}
|
64
64
|
</Option>
|
65
65
|
);
|
66
66
|
})}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Suspense, useRef, useState } from "react";
|
2
2
|
import { defineChain } from "../../../../chains/utils.js";
|
3
3
|
import type { ThirdwebClient } from "../../../../client/client.js";
|
4
|
-
import { linkProfile } from "../../../../wallets/in-app/
|
4
|
+
import { linkProfile } from "../../../../wallets/in-app/web/lib/auth/index.js";
|
5
5
|
import type { Wallet } from "../../../../wallets/interfaces/wallet.js";
|
6
6
|
import type { EcosystemWalletId } from "../../../../wallets/wallet-types.js";
|
7
7
|
import { iconSize } from "../../../core/design-system/index.js";
|
@@ -54,7 +54,8 @@ export function WalletAuth(props: {
|
|
54
54
|
setStatus("loading");
|
55
55
|
walletToConnect.current = walletToLink;
|
56
56
|
try {
|
57
|
-
await linkProfile(
|
57
|
+
await linkProfile({
|
58
|
+
client: props.client,
|
58
59
|
strategy: "wallet",
|
59
60
|
wallet: walletToLink,
|
60
61
|
chain: wallet.getChain() || defineChain(1),
|
@@ -8,7 +8,7 @@ import { webLocalStorage } from "../../../../utils/storage/webStorage.js";
|
|
8
8
|
import { getEcosystemWalletAuthOptions } from "../../../../wallets/ecosystem/get-ecosystem-wallet-auth-options.js";
|
9
9
|
import { isEcosystemWallet } from "../../../../wallets/ecosystem/is-ecosystem-wallet.js";
|
10
10
|
import type { Profile } from "../../../../wallets/in-app/core/authentication/types.js";
|
11
|
-
import { linkProfile } from "../../../../wallets/in-app/
|
11
|
+
import { linkProfile } from "../../../../wallets/in-app/web/lib/auth/index.js";
|
12
12
|
import { loginWithOauthRedirect } from "../../../../wallets/in-app/web/lib/auth/oauth.js";
|
13
13
|
import type { Account, Wallet } from "../../../../wallets/interfaces/wallet.js";
|
14
14
|
import {
|
@@ -269,7 +269,7 @@ export const ConnectWalletSocialOptions = (
|
|
269
269
|
if (wallet.id !== "inApp" && !isEcosystemWallet(wallet)) {
|
270
270
|
throw new Error("Only in-app wallets support multi-auth");
|
271
271
|
}
|
272
|
-
return linkProfile(
|
272
|
+
return linkProfile(connectOptions);
|
273
273
|
}
|
274
274
|
|
275
275
|
const connectPromise = wallet.connect(connectOptions);
|
@@ -350,7 +350,7 @@ export const ConnectWalletSocialOptions = (
|
|
350
350
|
aria-label={`Login with ${loginMethod}`}
|
351
351
|
data-variant={showOnlyIcons ? "icon" : "full"}
|
352
352
|
key={loginMethod}
|
353
|
-
variant=
|
353
|
+
variant="outline"
|
354
354
|
disabled={props.disabled}
|
355
355
|
onClick={() => {
|
356
356
|
handleSocialLogin(loginMethod as SocialAuthOption);
|
@@ -4,8 +4,10 @@ import type { Chain } from "../../../../chains/types.js";
|
|
4
4
|
import type { ThirdwebClient } from "../../../../client/client.js";
|
5
5
|
import { webLocalStorage } from "../../../../utils/storage/webStorage.js";
|
6
6
|
import { isEcosystemWallet } from "../../../../wallets/ecosystem/is-ecosystem-wallet.js";
|
7
|
-
import {
|
8
|
-
|
7
|
+
import {
|
8
|
+
linkProfile,
|
9
|
+
preAuthenticate,
|
10
|
+
} from "../../../../wallets/in-app/web/lib/auth/index.js";
|
9
11
|
import type { Wallet } from "../../../../wallets/interfaces/wallet.js";
|
10
12
|
import type { EcosystemWalletId } from "../../../../wallets/wallet-types.js";
|
11
13
|
import { useCustomTheme } from "../../../core/design-system/CustomThemeProvider.js";
|
@@ -126,13 +128,15 @@ export function OTPLoginUI(props: {
|
|
126
128
|
|
127
129
|
async function link(otp: string) {
|
128
130
|
if ("email" in userInfo) {
|
129
|
-
await linkProfile(
|
131
|
+
await linkProfile({
|
132
|
+
client: props.client,
|
130
133
|
strategy: "email",
|
131
134
|
email: userInfo.email,
|
132
135
|
verificationCode: otp,
|
133
136
|
});
|
134
137
|
} else if ("phone" in userInfo) {
|
135
|
-
await linkProfile(
|
138
|
+
await linkProfile({
|
139
|
+
client: props.client,
|
136
140
|
strategy: "phone",
|
137
141
|
phoneNumber: userInfo.phone,
|
138
142
|
verificationCode: otp,
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { useEffect, useRef, useState } from "react";
|
2
2
|
import type { Chain } from "../../../../chains/types.js";
|
3
3
|
import type { ThirdwebClient } from "../../../../client/client.js";
|
4
|
-
import { type Wallet, linkProfile } from "../../../../exports/wallets.js";
|
5
4
|
import { webLocalStorage } from "../../../../utils/storage/webStorage.js";
|
6
5
|
import { isEcosystemWallet } from "../../../../wallets/ecosystem/is-ecosystem-wallet.js";
|
6
|
+
import { linkProfile } from "../../../../wallets/in-app/web/lib/auth/index.js";
|
7
7
|
import { hasStoredPasskey } from "../../../../wallets/in-app/web/lib/auth/passkeys.js";
|
8
|
+
import type { Wallet } from "../../../../wallets/interfaces/wallet.js";
|
8
9
|
import { iconSize } from "../../../core/design-system/index.js";
|
9
10
|
import { setLastAuthProvider } from "../../../core/utils/storage.js";
|
10
11
|
import { FingerPrintIcon } from "../../ui/ConnectWallet/icons/FingerPrintIcon.js";
|
@@ -141,7 +142,8 @@ function LoginScreen(props: {
|
|
141
142
|
setStatus("loading");
|
142
143
|
try {
|
143
144
|
if (props.isLinking) {
|
144
|
-
await linkProfile(
|
145
|
+
await linkProfile({
|
146
|
+
client,
|
145
147
|
strategy: "passkey",
|
146
148
|
type: "sign-in",
|
147
149
|
}).catch((e) => {
|
@@ -214,7 +216,8 @@ function SignupScreen(props: {
|
|
214
216
|
setStatus("loading");
|
215
217
|
try {
|
216
218
|
if (props.isLinking) {
|
217
|
-
await linkProfile(
|
219
|
+
await linkProfile({
|
220
|
+
client,
|
218
221
|
strategy: "passkey",
|
219
222
|
type: "sign-up",
|
220
223
|
});
|
@@ -4,8 +4,8 @@ import type { Chain } from "../../../../chains/types.js";
|
|
4
4
|
import type { ThirdwebClient } from "../../../../client/client.js";
|
5
5
|
import { webLocalStorage } from "../../../../utils/storage/webStorage.js";
|
6
6
|
import { isEcosystemWallet } from "../../../../wallets/ecosystem/is-ecosystem-wallet.js";
|
7
|
-
import { linkProfile } from "../../../../wallets/in-app/core/wallet/profiles.js";
|
8
7
|
import type { InAppWalletSocialAuth } from "../../../../wallets/in-app/core/wallet/types.js";
|
8
|
+
import { linkProfile } from "../../../../wallets/in-app/web/lib/auth/index.js";
|
9
9
|
import { loginWithOauthRedirect } from "../../../../wallets/in-app/web/lib/auth/oauth.js";
|
10
10
|
import type { Wallet } from "../../../../wallets/interfaces/wallet.js";
|
11
11
|
import { useCustomTheme } from "../../../core/design-system/CustomThemeProvider.js";
|
@@ -92,7 +92,8 @@ export function SocialLogin(props: {
|
|
92
92
|
|
93
93
|
setStatus("connecting");
|
94
94
|
if (props.isLinking) {
|
95
|
-
await linkProfile(
|
95
|
+
await linkProfile({
|
96
|
+
client: props.client,
|
96
97
|
strategy: props.socialAuth,
|
97
98
|
openedWindow: socialWindow,
|
98
99
|
closeOpenedWindow: (openedWindow) => {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import type { ThirdwebClient } from "../../../../client/client.js";
|
2
2
|
import { getLoginUrl } from "../../../../wallets/in-app/core/authentication/getLoginPath.js";
|
3
3
|
import type {
|
4
|
+
Ecosystem,
|
4
5
|
InAppWalletOAuth,
|
5
6
|
InAppWalletSocialAuth,
|
6
7
|
} from "../../../../wallets/in-app/core/wallet/types.js";
|
7
|
-
import type { Ecosystem } from "../../../../wallets/in-app/web/types.js";
|
8
8
|
import type { Theme } from "../../../core/design-system/index.js";
|
9
9
|
|
10
10
|
function getBodyTitle(authOption: InAppWalletSocialAuth) {
|
@@ -30,6 +30,16 @@ export async function uploadBatch<const TFiles extends UploadableFile[]>(
|
|
30
30
|
"Unauthorized - You don't have permission to use this service.",
|
31
31
|
);
|
32
32
|
}
|
33
|
+
if (res.status === 402) {
|
34
|
+
throw new Error(
|
35
|
+
"You have reached your storage limit. Please add a valid payment method to continue using the service.",
|
36
|
+
);
|
37
|
+
}
|
38
|
+
if (res.status === 403) {
|
39
|
+
throw new Error(
|
40
|
+
"Forbidden - You don't have permission to use this service.",
|
41
|
+
);
|
42
|
+
}
|
33
43
|
throw new Error(
|
34
44
|
`Failed to upload files to IPFS - ${res.status} - ${res.statusText}`,
|
35
45
|
);
|
package/src/utils/fetch.test.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { beforeEach, describe, expect, it, vi } from "vitest";
|
2
2
|
import type { ThirdwebClient } from "../client/client.js";
|
3
|
-
import type { Ecosystem } from "../wallets/in-app/
|
3
|
+
import type { Ecosystem } from "../wallets/in-app/core/wallet/types.js";
|
4
4
|
import {
|
5
5
|
IS_THIRDWEB_URL_CACHE,
|
6
6
|
getClientFetch,
|
package/src/utils/fetch.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { ThirdwebClient } from "../client/client.js";
|
2
2
|
import { version } from "../version.js";
|
3
|
-
import type { Ecosystem } from "../wallets/in-app/
|
3
|
+
import type { Ecosystem } from "../wallets/in-app/core/wallet/types.js";
|
4
4
|
import { LruMap } from "./caching/lru.js";
|
5
5
|
import {
|
6
6
|
type OperatingSystem,
|
package/src/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const version = "5.
|
1
|
+
export const version = "5.59.0-nightly-e2b3484764275560aa899f3f894b767faedaa9a1-20240925000331";
|
@@ -3,6 +3,7 @@ import type { EcosystemWalletId } from "../../../wallet-types.js";
|
|
3
3
|
import {
|
4
4
|
AUTH_TOKEN_LOCAL_STORAGE_NAME,
|
5
5
|
DEVICE_SHARE_LOCAL_STORAGE_NAME,
|
6
|
+
GUEST_SESSION_LOCAL_STORAGE_NAME,
|
6
7
|
PASSKEY_CREDENTIAL_ID_LOCAL_STORAGE_NAME,
|
7
8
|
WALLET_CONNECT_SESSIONS_LOCAL_STORAGE_NAME,
|
8
9
|
WALLET_USER_ID_LOCAL_STORAGE_NAME,
|
@@ -154,6 +155,19 @@ export class ClientScopedStorage {
|
|
154
155
|
async removeWalletUserId(): Promise<boolean> {
|
155
156
|
return this.removeItem(WALLET_USER_ID_LOCAL_STORAGE_NAME(this.key));
|
156
157
|
}
|
158
|
+
|
159
|
+
/**
|
160
|
+
* @internal
|
161
|
+
*/
|
162
|
+
async getGuestSessionId(): Promise<string | null> {
|
163
|
+
return this.getItem(GUEST_SESSION_LOCAL_STORAGE_NAME(this.key));
|
164
|
+
}
|
165
|
+
/**
|
166
|
+
* @internal
|
167
|
+
*/
|
168
|
+
async saveGuestSessionId(sessionId: string): Promise<void> {
|
169
|
+
await this.setItem(GUEST_SESSION_LOCAL_STORAGE_NAME(this.key), sessionId);
|
170
|
+
}
|
157
171
|
}
|
158
172
|
|
159
173
|
const getLocalStorageKey = (clientId: string, ecosystemId?: string) => {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { ThirdwebClient } from "../../../../client/client.js";
|
2
2
|
import { getThirdwebBaseUrl } from "../../../../utils/domains.js";
|
3
3
|
import { type AuthOption, authOptions } from "../../../../wallets/types.js";
|
4
|
-
import type { Ecosystem } from "
|
4
|
+
import type { Ecosystem } from "../wallet/types.js";
|
5
5
|
|
6
6
|
const getLoginOptionRoute = (option: AuthOption | "wallet") => {
|
7
7
|
if (!authOptions.includes(option as AuthOption) && option !== "wallet") {
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import type { ThirdwebClient } from "../../../../client/client.js";
|
2
2
|
import { getClientFetch } from "../../../../utils/fetch.js";
|
3
|
-
import
|
3
|
+
import { randomBytesHex } from "../../../../utils/random.js";
|
4
|
+
import type { AsyncStorage } from "../../../../utils/storage/AsyncStorage.js";
|
5
|
+
import type { Ecosystem } from "../wallet/types.js";
|
6
|
+
import { ClientScopedStorage } from "./client-scoped-storage.js";
|
4
7
|
import { getLoginCallbackUrl } from "./getLoginPath.js";
|
5
8
|
import type { AuthStoredTokenWithCookieReturnType } from "./types.js";
|
6
9
|
|
@@ -10,8 +13,21 @@ import type { AuthStoredTokenWithCookieReturnType } from "./types.js";
|
|
10
13
|
*/
|
11
14
|
export async function guestAuthenticate(args: {
|
12
15
|
client: ThirdwebClient;
|
16
|
+
storage: AsyncStorage;
|
13
17
|
ecosystem?: Ecosystem;
|
14
18
|
}): Promise<AuthStoredTokenWithCookieReturnType> {
|
19
|
+
const storage = new ClientScopedStorage({
|
20
|
+
storage: args.storage,
|
21
|
+
clientId: args.client.clientId,
|
22
|
+
ecosystemId: args.ecosystem?.id,
|
23
|
+
});
|
24
|
+
|
25
|
+
let sessionId = await storage.getGuestSessionId();
|
26
|
+
if (!sessionId) {
|
27
|
+
sessionId = randomBytesHex(32);
|
28
|
+
storage.saveGuestSessionId(sessionId);
|
29
|
+
}
|
30
|
+
|
15
31
|
const clientFetch = getClientFetch(args.client, args.ecosystem);
|
16
32
|
const authResult = await (async () => {
|
17
33
|
const path = getLoginCallbackUrl({
|
@@ -25,7 +41,7 @@ export async function guestAuthenticate(args: {
|
|
25
41
|
"Content-Type": "application/json",
|
26
42
|
},
|
27
43
|
body: JSON.stringify({
|
28
|
-
sessionId
|
44
|
+
sessionId,
|
29
45
|
}),
|
30
46
|
});
|
31
47
|
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import type { ThirdwebClient } from "../../../../client/client.js";
|
2
2
|
import { getThirdwebBaseUrl } from "../../../../utils/domains.js";
|
3
3
|
import { getClientFetch } from "../../../../utils/fetch.js";
|
4
|
-
import type { Ecosystem } from "
|
4
|
+
import type { Ecosystem } from "../wallet/types.js";
|
5
|
+
import type { ClientScopedStorage } from "./client-scoped-storage.js";
|
5
6
|
import type { Profile } from "./types.js";
|
6
7
|
|
7
8
|
/**
|
@@ -15,16 +16,16 @@ export async function linkAccount({
|
|
15
16
|
client,
|
16
17
|
ecosystem,
|
17
18
|
tokenToLink,
|
19
|
+
storage,
|
18
20
|
}: {
|
19
21
|
client: ThirdwebClient;
|
20
22
|
ecosystem?: Ecosystem;
|
21
23
|
tokenToLink: string;
|
24
|
+
storage: ClientScopedStorage;
|
22
25
|
}): Promise<Profile[]> {
|
23
26
|
const clientFetch = getClientFetch(client, ecosystem);
|
24
27
|
const IN_APP_URL = getThirdwebBaseUrl("inAppWallet");
|
25
|
-
const currentAccountToken =
|
26
|
-
`walletToken-${client.clientId}${ecosystem?.id ? `-${ecosystem.id}` : ""}`,
|
27
|
-
);
|
28
|
+
const currentAccountToken = await storage.getAuthCookie();
|
28
29
|
|
29
30
|
if (!currentAccountToken) {
|
30
31
|
throw new Error("Failed to link account, no user logged in");
|
@@ -65,20 +66,23 @@ export async function linkAccount({
|
|
65
66
|
export async function getLinkedProfilesInternal({
|
66
67
|
client,
|
67
68
|
ecosystem,
|
68
|
-
|
69
|
+
storage,
|
70
|
+
}: {
|
71
|
+
client: ThirdwebClient;
|
72
|
+
ecosystem?: Ecosystem;
|
73
|
+
storage: ClientScopedStorage;
|
74
|
+
}): Promise<Profile[]> {
|
69
75
|
const clientFetch = getClientFetch(client, ecosystem);
|
70
76
|
const IN_APP_URL = getThirdwebBaseUrl("inAppWallet");
|
71
|
-
const currentAccountToken =
|
72
|
-
|
73
|
-
|
77
|
+
const currentAccountToken = await storage.getAuthCookie();
|
78
|
+
if (!currentAccountToken) {
|
79
|
+
throw new Error("Failed to get linked accounts, no user logged in");
|
80
|
+
}
|
74
81
|
|
75
82
|
const headers: Record<string, string> = {
|
76
83
|
Authorization: `Bearer iaw-auth-token:${currentAccountToken}`,
|
77
84
|
"Content-Type": "application/json",
|
78
85
|
};
|
79
|
-
if (!currentAccountToken) {
|
80
|
-
throw new Error("Failed to get linked accounts, no user logged in");
|
81
|
-
}
|
82
86
|
|
83
87
|
const linkedAccountsResp = await clientFetch(
|
84
88
|
`${IN_APP_URL}/api/2024-05-05/accounts`,
|
@@ -2,7 +2,7 @@ import type { ThirdwebClient } from "../../../../client/client.js";
|
|
2
2
|
import { getThirdwebBaseUrl } from "../../../../utils/domains.js";
|
3
3
|
import { getClientFetch } from "../../../../utils/fetch.js";
|
4
4
|
import type { AsyncStorage } from "../../../../utils/storage/AsyncStorage.js";
|
5
|
-
import type { Ecosystem } from "
|
5
|
+
import type { Ecosystem } from "../wallet/types.js";
|
6
6
|
import { ClientScopedStorage } from "./client-scoped-storage.js";
|
7
7
|
import type { AuthStoredTokenWithCookieReturnType } from "./types.js";
|
8
8
|
|
@@ -4,7 +4,7 @@ import type { Chain } from "../../../../chains/types.js";
|
|
4
4
|
import type { ThirdwebClient } from "../../../../client/client.js";
|
5
5
|
import { getClientFetch } from "../../../../utils/fetch.js";
|
6
6
|
import type { Wallet } from "../../../interfaces/wallet.js";
|
7
|
-
import type { Ecosystem } from "
|
7
|
+
import type { Ecosystem } from "../wallet/types.js";
|
8
8
|
import { getLoginCallbackUrl, getLoginUrl } from "./getLoginPath.js";
|
9
9
|
import type { AuthStoredTokenWithCookieReturnType } from "./types.js";
|
10
10
|
|
@@ -4,7 +4,7 @@ import type { Address } from "../../../../utils/address.js";
|
|
4
4
|
import type { Account } from "../../../interfaces/wallet.js";
|
5
5
|
import type { Wallet } from "../../../interfaces/wallet.js";
|
6
6
|
import type { AuthOption, OAuthOption } from "../../../types.js";
|
7
|
-
import type { Ecosystem } from "
|
7
|
+
import type { Ecosystem } from "../wallet/types.js";
|
8
8
|
|
9
9
|
export type MultiStepAuthProviderType =
|
10
10
|
| {
|
@@ -24,14 +24,16 @@ export type MultiStepAuthArgsType = MultiStepAuthProviderType & {
|
|
24
24
|
verificationCode: string;
|
25
25
|
};
|
26
26
|
|
27
|
+
export type SocialAuthArgsType = {
|
28
|
+
strategy: OAuthOption;
|
29
|
+
openedWindow?: Window;
|
30
|
+
closeOpenedWindow?: (window: Window) => void;
|
31
|
+
redirectUrl?: string;
|
32
|
+
mode?: "redirect" | "popup" | "window";
|
33
|
+
};
|
34
|
+
|
27
35
|
export type SingleStepAuthArgsType =
|
28
|
-
|
|
29
|
-
strategy: OAuthOption;
|
30
|
-
openedWindow?: Window;
|
31
|
-
closeOpenedWindow?: (window: Window) => void;
|
32
|
-
redirectUrl?: string;
|
33
|
-
mode?: "redirect" | "popup" | "window";
|
34
|
-
}
|
36
|
+
| SocialAuthArgsType
|
35
37
|
| { strategy: "jwt"; jwt: string; encryptionKey: string }
|
36
38
|
| { strategy: "auth_endpoint"; payload: string; encryptionKey: string }
|
37
39
|
| { strategy: "iframe_email_verification"; email: string }
|
@@ -52,3 +52,9 @@ export const DEVICE_SHARE_LOCAL_STORAGE_NAME = (key: string, userId: string) =>
|
|
52
52
|
*/
|
53
53
|
export const WALLET_CONNECT_SESSIONS_LOCAL_STORAGE_NAME = (key: string) =>
|
54
54
|
`walletConnectSessions-${key}`;
|
55
|
+
|
56
|
+
/**
|
57
|
+
* @internal
|
58
|
+
*/
|
59
|
+
export const GUEST_SESSION_LOCAL_STORAGE_NAME = (key: string) =>
|
60
|
+
`thirdweb_guest_session_id_${key}`;
|
@@ -1,12 +1,14 @@
|
|
1
1
|
import type { SocialAuthOption } from "../../../../wallets/types.js";
|
2
2
|
import type { Account } from "../../../interfaces/wallet.js";
|
3
3
|
import type {
|
4
|
+
AuthArgsType,
|
4
5
|
AuthLoginReturnType,
|
5
6
|
AuthStoredTokenWithCookieReturnType,
|
6
7
|
GetUser,
|
7
8
|
LogoutReturnType,
|
8
9
|
MultiStepAuthArgsType,
|
9
10
|
PreAuthArgsType,
|
11
|
+
Profile,
|
10
12
|
SingleStepAuthArgsType,
|
11
13
|
} from "../authentication/types.js";
|
12
14
|
|
@@ -33,4 +35,6 @@ export interface InAppConnector {
|
|
33
35
|
args: MultiStepAuthArgsType | SingleStepAuthArgsType,
|
34
36
|
): Promise<AuthLoginReturnType>;
|
35
37
|
logout(): Promise<LogoutReturnType>;
|
38
|
+
linkProfile(args: AuthArgsType): Promise<Profile[]>;
|
39
|
+
getProfiles(): Promise<Profile[]>;
|
36
40
|
}
|