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.
Files changed (472) hide show
  1. package/dist/cjs/exports/react.js +3 -3
  2. package/dist/cjs/exports/react.js.map +1 -1
  3. package/dist/cjs/exports/react.native.js +5 -3
  4. package/dist/cjs/exports/react.native.js.map +1 -1
  5. package/dist/cjs/exports/wallets/in-app.js +3 -1
  6. package/dist/cjs/exports/wallets/in-app.js.map +1 -1
  7. package/dist/cjs/exports/wallets/in-app.native.js +3 -1
  8. package/dist/cjs/exports/wallets/in-app.native.js.map +1 -1
  9. package/dist/cjs/exports/wallets.js +15 -10
  10. package/dist/cjs/exports/wallets.js.map +1 -1
  11. package/dist/cjs/exports/wallets.native.js +18 -7
  12. package/dist/cjs/exports/wallets.native.js.map +1 -1
  13. package/dist/cjs/react/core/hooks/wallets/{useAdminAccount.js → useAdminWallet.js} +1 -1
  14. package/dist/cjs/react/core/hooks/wallets/useAdminWallet.js.map +1 -0
  15. package/dist/cjs/react/{core/hooks/others → native/hooks/wallets}/useProfiles.js +15 -7
  16. package/dist/cjs/react/native/hooks/wallets/useProfiles.js.map +1 -0
  17. package/dist/cjs/react/native/ui/connect/ConnectButton.js.map +1 -1
  18. package/dist/cjs/react/native/ui/connect/ConnectModal.js.map +1 -1
  19. package/dist/cjs/react/native/ui/connect/WalletLoadingThumbnail.js.map +1 -1
  20. package/dist/cjs/react/native/ui/transaction/TransactionButton.js.map +1 -1
  21. package/dist/cjs/react/web/hooks/wallets/useProfiles.js +45 -0
  22. package/dist/cjs/react/web/hooks/wallets/useProfiles.js.map +1 -0
  23. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +6 -3
  24. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  25. package/dist/cjs/react/web/ui/ConnectWallet/Details.js +5 -4
  26. package/dist/cjs/react/web/ui/ConnectWallet/Details.js.map +1 -1
  27. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js.map +1 -1
  28. package/dist/cjs/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.js.map +1 -1
  29. package/dist/cjs/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js +1 -1
  30. package/dist/cjs/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js.map +1 -1
  31. package/dist/cjs/react/web/ui/ConnectWallet/NetworkSelector.js.map +1 -1
  32. package/dist/cjs/react/web/ui/ConnectWallet/PoweredByTW.js.map +1 -1
  33. package/dist/cjs/react/web/ui/ConnectWallet/TransactionsScreen.js +1 -1
  34. package/dist/cjs/react/web/ui/ConnectWallet/TransactionsScreen.js.map +1 -1
  35. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +1 -1
  36. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
  37. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/DirectPaymentModeScreen.js.map +1 -1
  38. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.js.map +1 -1
  39. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js +1 -1
  40. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js.map +1 -1
  41. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js +2 -2
  42. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js.map +1 -1
  43. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/BuyTxHistoryButton.js +4 -4
  44. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/BuyTxHistoryButton.js.map +1 -1
  45. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/SwapDetailsScreen.js.map +1 -1
  46. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js.map +1 -1
  47. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.js +1 -1
  48. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.js.map +1 -1
  49. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/SwapStatusScreen.js.map +1 -1
  50. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/TransferConfirmationScreen.js.map +1 -1
  51. package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js +2 -2
  52. package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js.map +1 -1
  53. package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js +4 -2
  54. package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js.map +1 -1
  55. package/dist/cjs/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js +2 -2
  56. package/dist/cjs/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js.map +1 -1
  57. package/dist/cjs/react/web/ui/ConnectWallet/screens/SendFunds.js.map +1 -1
  58. package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js +2 -2
  59. package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
  60. package/dist/cjs/react/web/ui/ConnectWallet/screens/StartScreen.js.map +1 -1
  61. package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletConnectDisconnectScreen.js +1 -1
  62. package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletConnectDisconnectScreen.js.map +1 -1
  63. package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletConnectReceiverScreen.js +1 -1
  64. package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletConnectReceiverScreen.js.map +1 -1
  65. package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletLogoSpinner.js.map +1 -1
  66. package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.js.map +1 -1
  67. package/dist/cjs/react/web/ui/TransactionButton/ExecutingScreen.js +1 -1
  68. package/dist/cjs/react/web/ui/TransactionButton/ExecutingScreen.js.map +1 -1
  69. package/dist/cjs/react/web/ui/TransactionButton/index.js.map +1 -1
  70. package/dist/cjs/react/web/ui/components/ChainName.js.map +1 -1
  71. package/dist/cjs/react/web/ui/components/Modal.js +1 -1
  72. package/dist/cjs/react/web/ui/components/Modal.js.map +1 -1
  73. package/dist/cjs/react/web/ui/components/basic.js.map +1 -1
  74. package/dist/cjs/react/web/wallets/in-app/CountrySelector.js +1 -1
  75. package/dist/cjs/react/web/wallets/in-app/CountrySelector.js.map +1 -1
  76. package/dist/cjs/react/web/wallets/in-app/WalletAuth.js +5 -4
  77. package/dist/cjs/react/web/wallets/in-app/WalletAuth.js.map +1 -1
  78. package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js +10 -10
  79. package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
  80. package/dist/cjs/react/web/wallets/shared/ConnectingScreen.js +1 -1
  81. package/dist/cjs/react/web/wallets/shared/ConnectingScreen.js.map +1 -1
  82. package/dist/cjs/react/web/wallets/shared/OTPLoginUI.js +4 -3
  83. package/dist/cjs/react/web/wallets/shared/OTPLoginUI.js.map +1 -1
  84. package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js +9 -7
  85. package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
  86. package/dist/cjs/react/web/wallets/shared/SocialLogin.js +3 -2
  87. package/dist/cjs/react/web/wallets/shared/SocialLogin.js.map +1 -1
  88. package/dist/cjs/storage/upload/web-node.js +6 -0
  89. package/dist/cjs/storage/upload/web-node.js.map +1 -1
  90. package/dist/cjs/version.js +1 -1
  91. package/dist/cjs/version.js.map +1 -1
  92. package/dist/cjs/wallets/in-app/core/authentication/client-scoped-storage.js +12 -0
  93. package/dist/cjs/wallets/in-app/core/authentication/client-scoped-storage.js.map +1 -1
  94. package/dist/cjs/wallets/in-app/core/authentication/guest.js +13 -1
  95. package/dist/cjs/wallets/in-app/core/authentication/guest.js.map +1 -1
  96. package/dist/cjs/wallets/in-app/core/authentication/linkAccount.js +7 -7
  97. package/dist/cjs/wallets/in-app/core/authentication/linkAccount.js.map +1 -1
  98. package/dist/cjs/wallets/in-app/core/authentication/types.js.map +1 -1
  99. package/dist/cjs/wallets/in-app/core/constants/settings.js +6 -1
  100. package/dist/cjs/wallets/in-app/core/constants/settings.js.map +1 -1
  101. package/dist/cjs/wallets/in-app/core/wallet/ecosystem-core.js +0 -20
  102. package/dist/cjs/wallets/in-app/core/wallet/ecosystem-core.js.map +1 -1
  103. package/dist/cjs/wallets/in-app/core/wallet/in-app-core.js +0 -39
  104. package/dist/cjs/wallets/in-app/core/wallet/in-app-core.js.map +1 -1
  105. package/dist/cjs/wallets/in-app/native/auth/index.js +57 -2
  106. package/dist/cjs/wallets/in-app/native/auth/index.js.map +1 -1
  107. package/dist/cjs/wallets/in-app/native/auth/native-auth.js +2 -0
  108. package/dist/cjs/wallets/in-app/native/auth/native-auth.js.map +1 -1
  109. package/dist/cjs/wallets/in-app/native/native-connector.js +62 -19
  110. package/dist/cjs/wallets/in-app/native/native-connector.js.map +1 -1
  111. package/dist/cjs/wallets/in-app/web/lib/actions/sign-message.enclave.js +1 -1
  112. package/dist/cjs/wallets/in-app/web/lib/actions/sign-message.enclave.js.map +1 -1
  113. package/dist/cjs/wallets/in-app/web/lib/actions/sign-transaction.enclave.js +1 -1
  114. package/dist/cjs/wallets/in-app/web/lib/actions/sign-transaction.enclave.js.map +1 -1
  115. package/dist/cjs/wallets/in-app/web/lib/actions/sign-typed-data.enclave.js +1 -1
  116. package/dist/cjs/wallets/in-app/web/lib/actions/sign-typed-data.enclave.js.map +1 -1
  117. package/dist/cjs/wallets/in-app/web/lib/auth/abstract-login.js.map +1 -1
  118. package/dist/cjs/wallets/in-app/web/lib/auth/iframe-auth.js +2 -8
  119. package/dist/cjs/wallets/in-app/web/lib/auth/iframe-auth.js.map +1 -1
  120. package/dist/cjs/wallets/in-app/web/lib/auth/index.js +80 -4
  121. package/dist/cjs/wallets/in-app/web/lib/auth/index.js.map +1 -1
  122. package/dist/cjs/wallets/in-app/web/lib/enclave-wallet.js +2 -8
  123. package/dist/cjs/wallets/in-app/web/lib/enclave-wallet.js.map +1 -1
  124. package/dist/cjs/wallets/in-app/web/lib/get-auth-token.js +1 -0
  125. package/dist/cjs/wallets/in-app/web/lib/get-auth-token.js.map +1 -1
  126. package/dist/cjs/wallets/in-app/web/lib/iframe-wallet.js +2 -8
  127. package/dist/cjs/wallets/in-app/web/lib/iframe-wallet.js.map +1 -1
  128. package/dist/cjs/wallets/in-app/web/lib/web-connector.js +32 -0
  129. package/dist/cjs/wallets/in-app/web/lib/web-connector.js.map +1 -1
  130. package/dist/esm/exports/react.js +2 -2
  131. package/dist/esm/exports/react.js.map +1 -1
  132. package/dist/esm/exports/react.native.js +2 -1
  133. package/dist/esm/exports/react.native.js.map +1 -1
  134. package/dist/esm/exports/wallets/in-app.js +1 -1
  135. package/dist/esm/exports/wallets/in-app.js.map +1 -1
  136. package/dist/esm/exports/wallets/in-app.native.js +1 -1
  137. package/dist/esm/exports/wallets/in-app.native.js.map +1 -1
  138. package/dist/esm/exports/wallets.js +1 -1
  139. package/dist/esm/exports/wallets.js.map +1 -1
  140. package/dist/esm/exports/wallets.native.js +4 -0
  141. package/dist/esm/exports/wallets.native.js.map +1 -1
  142. package/dist/esm/react/core/hooks/wallets/{useAdminAccount.js → useAdminWallet.js} +1 -1
  143. package/dist/esm/react/core/hooks/wallets/useAdminWallet.js.map +1 -0
  144. package/dist/esm/react/{core/hooks/others → native/hooks/wallets}/useProfiles.js +14 -6
  145. package/dist/esm/react/native/hooks/wallets/useProfiles.js.map +1 -0
  146. package/dist/esm/react/native/ui/connect/ConnectButton.js.map +1 -1
  147. package/dist/esm/react/native/ui/connect/ConnectModal.js.map +1 -1
  148. package/dist/esm/react/native/ui/connect/WalletLoadingThumbnail.js.map +1 -1
  149. package/dist/esm/react/native/ui/transaction/TransactionButton.js.map +1 -1
  150. package/dist/esm/react/web/hooks/wallets/useProfiles.js +42 -0
  151. package/dist/esm/react/web/hooks/wallets/useProfiles.js.map +1 -0
  152. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +6 -3
  153. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  154. package/dist/esm/react/web/ui/ConnectWallet/Details.js +4 -3
  155. package/dist/esm/react/web/ui/ConnectWallet/Details.js.map +1 -1
  156. package/dist/esm/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js.map +1 -1
  157. package/dist/esm/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.js.map +1 -1
  158. package/dist/esm/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js +1 -1
  159. package/dist/esm/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js.map +1 -1
  160. package/dist/esm/react/web/ui/ConnectWallet/NetworkSelector.js.map +1 -1
  161. package/dist/esm/react/web/ui/ConnectWallet/PoweredByTW.js.map +1 -1
  162. package/dist/esm/react/web/ui/ConnectWallet/TransactionsScreen.js +1 -1
  163. package/dist/esm/react/web/ui/ConnectWallet/TransactionsScreen.js.map +1 -1
  164. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +1 -1
  165. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
  166. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/DirectPaymentModeScreen.js.map +1 -1
  167. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.js.map +1 -1
  168. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js +1 -1
  169. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js.map +1 -1
  170. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js +2 -2
  171. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js.map +1 -1
  172. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/BuyTxHistoryButton.js +4 -4
  173. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/BuyTxHistoryButton.js.map +1 -1
  174. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/SwapDetailsScreen.js.map +1 -1
  175. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js.map +1 -1
  176. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.js +1 -1
  177. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.js.map +1 -1
  178. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/SwapStatusScreen.js.map +1 -1
  179. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/TransferConfirmationScreen.js.map +1 -1
  180. package/dist/esm/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js +1 -1
  181. package/dist/esm/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js.map +1 -1
  182. package/dist/esm/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js +4 -2
  183. package/dist/esm/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js.map +1 -1
  184. package/dist/esm/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js +1 -1
  185. package/dist/esm/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js.map +1 -1
  186. package/dist/esm/react/web/ui/ConnectWallet/screens/SendFunds.js.map +1 -1
  187. package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js +1 -1
  188. package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
  189. package/dist/esm/react/web/ui/ConnectWallet/screens/StartScreen.js.map +1 -1
  190. package/dist/esm/react/web/ui/ConnectWallet/screens/WalletConnectDisconnectScreen.js +1 -1
  191. package/dist/esm/react/web/ui/ConnectWallet/screens/WalletConnectDisconnectScreen.js.map +1 -1
  192. package/dist/esm/react/web/ui/ConnectWallet/screens/WalletConnectReceiverScreen.js +1 -1
  193. package/dist/esm/react/web/ui/ConnectWallet/screens/WalletConnectReceiverScreen.js.map +1 -1
  194. package/dist/esm/react/web/ui/ConnectWallet/screens/WalletLogoSpinner.js.map +1 -1
  195. package/dist/esm/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.js.map +1 -1
  196. package/dist/esm/react/web/ui/TransactionButton/ExecutingScreen.js +1 -1
  197. package/dist/esm/react/web/ui/TransactionButton/ExecutingScreen.js.map +1 -1
  198. package/dist/esm/react/web/ui/TransactionButton/index.js.map +1 -1
  199. package/dist/esm/react/web/ui/components/ChainName.js.map +1 -1
  200. package/dist/esm/react/web/ui/components/Modal.js +1 -1
  201. package/dist/esm/react/web/ui/components/Modal.js.map +1 -1
  202. package/dist/esm/react/web/ui/components/basic.js.map +1 -1
  203. package/dist/esm/react/web/wallets/in-app/CountrySelector.js +1 -1
  204. package/dist/esm/react/web/wallets/in-app/CountrySelector.js.map +1 -1
  205. package/dist/esm/react/web/wallets/in-app/WalletAuth.js +3 -2
  206. package/dist/esm/react/web/wallets/in-app/WalletAuth.js.map +1 -1
  207. package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js +2 -2
  208. package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
  209. package/dist/esm/react/web/wallets/shared/ConnectingScreen.js +1 -1
  210. package/dist/esm/react/web/wallets/shared/ConnectingScreen.js.map +1 -1
  211. package/dist/esm/react/web/wallets/shared/OTPLoginUI.js +5 -4
  212. package/dist/esm/react/web/wallets/shared/OTPLoginUI.js.map +1 -1
  213. package/dist/esm/react/web/wallets/shared/PassKeyLogin.js +5 -3
  214. package/dist/esm/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
  215. package/dist/esm/react/web/wallets/shared/SocialLogin.js +3 -2
  216. package/dist/esm/react/web/wallets/shared/SocialLogin.js.map +1 -1
  217. package/dist/esm/storage/upload/web-node.js +6 -0
  218. package/dist/esm/storage/upload/web-node.js.map +1 -1
  219. package/dist/esm/version.js +1 -1
  220. package/dist/esm/version.js.map +1 -1
  221. package/dist/esm/wallets/in-app/core/authentication/client-scoped-storage.js +13 -1
  222. package/dist/esm/wallets/in-app/core/authentication/client-scoped-storage.js.map +1 -1
  223. package/dist/esm/wallets/in-app/core/authentication/guest.js +13 -1
  224. package/dist/esm/wallets/in-app/core/authentication/guest.js.map +1 -1
  225. package/dist/esm/wallets/in-app/core/authentication/linkAccount.js +7 -7
  226. package/dist/esm/wallets/in-app/core/authentication/linkAccount.js.map +1 -1
  227. package/dist/esm/wallets/in-app/core/authentication/types.js.map +1 -1
  228. package/dist/esm/wallets/in-app/core/constants/settings.js +4 -0
  229. package/dist/esm/wallets/in-app/core/constants/settings.js.map +1 -1
  230. package/dist/esm/wallets/in-app/core/wallet/ecosystem-core.js +0 -20
  231. package/dist/esm/wallets/in-app/core/wallet/ecosystem-core.js.map +1 -1
  232. package/dist/esm/wallets/in-app/core/wallet/in-app-core.js +0 -39
  233. package/dist/esm/wallets/in-app/core/wallet/in-app-core.js.map +1 -1
  234. package/dist/esm/wallets/in-app/native/auth/index.js +55 -2
  235. package/dist/esm/wallets/in-app/native/auth/index.js.map +1 -1
  236. package/dist/esm/wallets/in-app/native/auth/native-auth.js +2 -0
  237. package/dist/esm/wallets/in-app/native/auth/native-auth.js.map +1 -1
  238. package/dist/esm/wallets/in-app/native/native-connector.js +62 -19
  239. package/dist/esm/wallets/in-app/native/native-connector.js.map +1 -1
  240. package/dist/esm/wallets/in-app/web/lib/actions/sign-message.enclave.js +1 -1
  241. package/dist/esm/wallets/in-app/web/lib/actions/sign-message.enclave.js.map +1 -1
  242. package/dist/esm/wallets/in-app/web/lib/actions/sign-transaction.enclave.js +1 -1
  243. package/dist/esm/wallets/in-app/web/lib/actions/sign-transaction.enclave.js.map +1 -1
  244. package/dist/esm/wallets/in-app/web/lib/actions/sign-typed-data.enclave.js +1 -1
  245. package/dist/esm/wallets/in-app/web/lib/actions/sign-typed-data.enclave.js.map +1 -1
  246. package/dist/esm/wallets/in-app/web/lib/auth/abstract-login.js.map +1 -1
  247. package/dist/esm/wallets/in-app/web/lib/auth/iframe-auth.js +2 -8
  248. package/dist/esm/wallets/in-app/web/lib/auth/iframe-auth.js.map +1 -1
  249. package/dist/esm/wallets/in-app/web/lib/auth/index.js +77 -4
  250. package/dist/esm/wallets/in-app/web/lib/auth/index.js.map +1 -1
  251. package/dist/esm/wallets/in-app/web/lib/enclave-wallet.js +2 -8
  252. package/dist/esm/wallets/in-app/web/lib/enclave-wallet.js.map +1 -1
  253. package/dist/esm/wallets/in-app/web/lib/get-auth-token.js +1 -0
  254. package/dist/esm/wallets/in-app/web/lib/get-auth-token.js.map +1 -1
  255. package/dist/esm/wallets/in-app/web/lib/iframe-wallet.js +2 -8
  256. package/dist/esm/wallets/in-app/web/lib/iframe-wallet.js.map +1 -1
  257. package/dist/esm/wallets/in-app/web/lib/web-connector.js +32 -0
  258. package/dist/esm/wallets/in-app/web/lib/web-connector.js.map +1 -1
  259. package/dist/types/exports/react.d.ts +2 -2
  260. package/dist/types/exports/react.d.ts.map +1 -1
  261. package/dist/types/exports/react.native.d.ts +2 -1
  262. package/dist/types/exports/react.native.d.ts.map +1 -1
  263. package/dist/types/exports/wallets/in-app.d.ts +1 -1
  264. package/dist/types/exports/wallets/in-app.d.ts.map +1 -1
  265. package/dist/types/exports/wallets/in-app.native.d.ts +1 -1
  266. package/dist/types/exports/wallets/in-app.native.d.ts.map +1 -1
  267. package/dist/types/exports/wallets.d.ts +1 -1
  268. package/dist/types/exports/wallets.d.ts.map +1 -1
  269. package/dist/types/exports/wallets.native.d.ts +2 -0
  270. package/dist/types/exports/wallets.native.d.ts.map +1 -1
  271. package/dist/types/react/core/hooks/wallets/useActiveAccount.d.ts +1 -1
  272. package/dist/types/react/core/hooks/wallets/useActiveAccount.d.ts.map +1 -1
  273. package/dist/types/react/core/hooks/wallets/useActiveWallet.d.ts +1 -1
  274. package/dist/types/react/core/hooks/wallets/useActiveWallet.d.ts.map +1 -1
  275. package/dist/types/react/core/hooks/wallets/useActiveWalletConnectionStatus.d.ts +1 -1
  276. package/dist/types/react/core/hooks/wallets/useActiveWalletConnectionStatus.d.ts.map +1 -1
  277. package/dist/types/react/core/hooks/wallets/useAddConnectedWallet.d.ts +1 -1
  278. package/dist/types/react/core/hooks/wallets/useAddConnectedWallet.d.ts.map +1 -1
  279. package/dist/types/react/core/hooks/wallets/{useAdminAccount.d.ts → useAdminWallet.d.ts} +2 -2
  280. package/dist/types/react/core/hooks/wallets/useAdminWallet.d.ts.map +1 -0
  281. package/dist/types/react/core/hooks/wallets/useConnectedWallets.d.ts +1 -1
  282. package/dist/types/react/core/hooks/wallets/useConnectedWallets.d.ts.map +1 -1
  283. package/dist/types/react/core/hooks/wallets/useDisconnect.d.ts +1 -1
  284. package/dist/types/react/core/hooks/wallets/useSetActiveWallet.d.ts +1 -1
  285. package/dist/types/react/core/hooks/wallets/useSetActiveWallet.d.ts.map +1 -1
  286. package/dist/types/react/core/hooks/wallets/useSetActiveWalletConnectionStatus.d.ts +1 -1
  287. package/dist/types/react/core/hooks/wallets/useSetActiveWalletConnectionStatus.d.ts.map +1 -1
  288. package/dist/types/react/core/providers/connection-manager.d.ts +27 -27
  289. package/dist/types/react/{core/hooks/others → native/hooks/wallets}/useProfiles.d.ts +8 -3
  290. package/dist/types/react/native/hooks/wallets/useProfiles.d.ts.map +1 -0
  291. package/dist/types/react/web/hooks/wallets/useProfiles.d.ts +28 -0
  292. package/dist/types/react/web/hooks/wallets/useProfiles.d.ts.map +1 -0
  293. package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts.map +1 -1
  294. package/dist/types/react/web/ui/ConnectWallet/Details.d.ts.map +1 -1
  295. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.d.ts.map +1 -1
  296. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.d.ts.map +1 -1
  297. package/dist/types/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.d.ts.map +1 -1
  298. package/dist/types/react/web/ui/MediaRenderer/ModelViewer.d.ts +1 -1
  299. package/dist/types/react/web/wallets/in-app/WalletAuth.d.ts.map +1 -1
  300. package/dist/types/react/web/wallets/shared/OTPLoginUI.d.ts.map +1 -1
  301. package/dist/types/react/web/wallets/shared/PassKeyLogin.d.ts +1 -1
  302. package/dist/types/react/web/wallets/shared/PassKeyLogin.d.ts.map +1 -1
  303. package/dist/types/react/web/wallets/shared/SocialLogin.d.ts.map +1 -1
  304. package/dist/types/react/web/wallets/shared/oauthSignIn.d.ts +1 -2
  305. package/dist/types/react/web/wallets/shared/oauthSignIn.d.ts.map +1 -1
  306. package/dist/types/storage/upload/web-node.d.ts.map +1 -1
  307. package/dist/types/utils/fetch.d.ts +1 -1
  308. package/dist/types/utils/fetch.d.ts.map +1 -1
  309. package/dist/types/version.d.ts +1 -1
  310. package/dist/types/version.d.ts.map +1 -1
  311. package/dist/types/wallets/in-app/core/authentication/client-scoped-storage.d.ts +8 -0
  312. package/dist/types/wallets/in-app/core/authentication/client-scoped-storage.d.ts.map +1 -1
  313. package/dist/types/wallets/in-app/core/authentication/getLoginPath.d.ts +1 -1
  314. package/dist/types/wallets/in-app/core/authentication/guest.d.ts +3 -1
  315. package/dist/types/wallets/in-app/core/authentication/guest.d.ts.map +1 -1
  316. package/dist/types/wallets/in-app/core/authentication/linkAccount.d.ts +6 -3
  317. package/dist/types/wallets/in-app/core/authentication/linkAccount.d.ts.map +1 -1
  318. package/dist/types/wallets/in-app/core/authentication/passkeys.d.ts +1 -1
  319. package/dist/types/wallets/in-app/core/authentication/siwe.d.ts +1 -1
  320. package/dist/types/wallets/in-app/core/authentication/types.d.ts +4 -3
  321. package/dist/types/wallets/in-app/core/authentication/types.d.ts.map +1 -1
  322. package/dist/types/wallets/in-app/core/constants/settings.d.ts +4 -0
  323. package/dist/types/wallets/in-app/core/constants/settings.d.ts.map +1 -1
  324. package/dist/types/wallets/in-app/core/interfaces/connector.d.ts +3 -1
  325. package/dist/types/wallets/in-app/core/interfaces/connector.d.ts.map +1 -1
  326. package/dist/types/wallets/in-app/core/wallet/ecosystem-core.d.ts.map +1 -1
  327. package/dist/types/wallets/in-app/core/wallet/in-app-core.d.ts +1 -1
  328. package/dist/types/wallets/in-app/core/wallet/in-app-core.d.ts.map +1 -1
  329. package/dist/types/wallets/in-app/core/wallet/types.d.ts +5 -0
  330. package/dist/types/wallets/in-app/core/wallet/types.d.ts.map +1 -1
  331. package/dist/types/wallets/in-app/native/auth/index.d.ts +48 -2
  332. package/dist/types/wallets/in-app/native/auth/index.d.ts.map +1 -1
  333. package/dist/types/wallets/in-app/native/auth/native-auth.d.ts +1 -1
  334. package/dist/types/wallets/in-app/native/auth/native-auth.d.ts.map +1 -1
  335. package/dist/types/wallets/in-app/native/native-connector.d.ts +8 -2
  336. package/dist/types/wallets/in-app/native/native-connector.d.ts.map +1 -1
  337. package/dist/types/wallets/in-app/web/lib/actions/generate-wallet.enclave.d.ts +1 -1
  338. package/dist/types/wallets/in-app/web/lib/actions/generate-wallet.enclave.d.ts.map +1 -1
  339. package/dist/types/wallets/in-app/web/lib/actions/get-enclave-user-status.d.ts +1 -1
  340. package/dist/types/wallets/in-app/web/lib/actions/get-enclave-user-status.d.ts.map +1 -1
  341. package/dist/types/wallets/in-app/web/lib/actions/sign-message.enclave.d.ts +1 -1
  342. package/dist/types/wallets/in-app/web/lib/actions/sign-message.enclave.d.ts.map +1 -1
  343. package/dist/types/wallets/in-app/web/lib/actions/sign-transaction.enclave.d.ts +1 -1
  344. package/dist/types/wallets/in-app/web/lib/actions/sign-transaction.enclave.d.ts.map +1 -1
  345. package/dist/types/wallets/in-app/web/lib/actions/sign-typed-data.enclave.d.ts +1 -1
  346. package/dist/types/wallets/in-app/web/lib/actions/sign-typed-data.enclave.d.ts.map +1 -1
  347. package/dist/types/wallets/in-app/web/lib/auth/abstract-login.d.ts +2 -1
  348. package/dist/types/wallets/in-app/web/lib/auth/abstract-login.d.ts.map +1 -1
  349. package/dist/types/wallets/in-app/web/lib/auth/iframe-auth.d.ts +5 -3
  350. package/dist/types/wallets/in-app/web/lib/auth/iframe-auth.d.ts.map +1 -1
  351. package/dist/types/wallets/in-app/web/lib/auth/index.d.ts +68 -8
  352. package/dist/types/wallets/in-app/web/lib/auth/index.d.ts.map +1 -1
  353. package/dist/types/wallets/in-app/web/lib/auth/oauth.d.ts +1 -1
  354. package/dist/types/wallets/in-app/web/lib/auth/oauth.d.ts.map +1 -1
  355. package/dist/types/wallets/in-app/web/lib/auth/otp.d.ts +1 -1
  356. package/dist/types/wallets/in-app/web/lib/auth/otp.d.ts.map +1 -1
  357. package/dist/types/wallets/in-app/web/lib/enclave-wallet.d.ts +8 -7
  358. package/dist/types/wallets/in-app/web/lib/enclave-wallet.d.ts.map +1 -1
  359. package/dist/types/wallets/in-app/web/lib/get-auth-token.d.ts +1 -1
  360. package/dist/types/wallets/in-app/web/lib/get-auth-token.d.ts.map +1 -1
  361. package/dist/types/wallets/in-app/web/lib/iframe-wallet.d.ts +5 -3
  362. package/dist/types/wallets/in-app/web/lib/iframe-wallet.d.ts.map +1 -1
  363. package/dist/types/wallets/in-app/web/lib/web-connector.d.ts +9 -8
  364. package/dist/types/wallets/in-app/web/lib/web-connector.d.ts.map +1 -1
  365. package/dist/types/wallets/in-app/web/types.d.ts +1 -5
  366. package/dist/types/wallets/in-app/web/types.d.ts.map +1 -1
  367. package/dist/types/wallets/in-app/web/utils/iFrameCommunication/InAppWalletIframeCommunicator.d.ts +1 -1
  368. package/dist/types/wallets/in-app/web/utils/iFrameCommunication/InAppWalletIframeCommunicator.d.ts.map +1 -1
  369. package/package.json +4 -4
  370. package/src/exports/react.native.ts +2 -1
  371. package/src/exports/react.ts +2 -2
  372. package/src/exports/wallets/in-app.native.ts +2 -0
  373. package/src/exports/wallets/in-app.ts +2 -0
  374. package/src/exports/wallets.native.ts +12 -0
  375. package/src/exports/wallets.ts +6 -1
  376. package/src/react/{core/hooks/others → native/hooks/wallets}/useProfiles.ts +19 -8
  377. package/src/react/native/ui/connect/ConnectButton.tsx +1 -1
  378. package/src/react/native/ui/connect/ConnectModal.tsx +1 -1
  379. package/src/react/native/ui/connect/WalletLoadingThumbnail.tsx +1 -1
  380. package/src/react/native/ui/transaction/TransactionButton.tsx +1 -1
  381. package/src/react/web/hooks/wallets/useProfiles.ts +48 -0
  382. package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +6 -9
  383. package/src/react/web/ui/ConnectWallet/Details.tsx +11 -12
  384. package/src/react/web/ui/ConnectWallet/Modal/AllWalletsUI.tsx +1 -1
  385. package/src/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.tsx +1 -1
  386. package/src/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.tsx +0 -1
  387. package/src/react/web/ui/ConnectWallet/NetworkSelector.tsx +1 -1
  388. package/src/react/web/ui/ConnectWallet/PoweredByTW.tsx +1 -1
  389. package/src/react/web/ui/ConnectWallet/TransactionsScreen.tsx +1 -1
  390. package/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx +4 -1
  391. package/src/react/web/ui/ConnectWallet/screens/Buy/DirectPaymentModeScreen.tsx +1 -1
  392. package/src/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.tsx +1 -1
  393. package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.tsx +1 -2
  394. package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.tsx +2 -2
  395. package/src/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/BuyTxHistoryButton.tsx +1 -1
  396. package/src/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/SwapDetailsScreen.tsx +1 -1
  397. package/src/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.tsx +1 -1
  398. package/src/react/web/ui/ConnectWallet/screens/Buy/swap/Fees.tsx +1 -2
  399. package/src/react/web/ui/ConnectWallet/screens/Buy/swap/SwapStatusScreen.tsx +4 -4
  400. package/src/react/web/ui/ConnectWallet/screens/Buy/swap/TransferConfirmationScreen.tsx +2 -2
  401. package/src/react/web/ui/ConnectWallet/screens/LinkProfileScreen.tsx +1 -1
  402. package/src/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.tsx +4 -2
  403. package/src/react/web/ui/ConnectWallet/screens/ManageWalletScreen.tsx +1 -1
  404. package/src/react/web/ui/ConnectWallet/screens/SendFunds.tsx +1 -1
  405. package/src/react/web/ui/ConnectWallet/screens/SignatureScreen.tsx +2 -2
  406. package/src/react/web/ui/ConnectWallet/screens/StartScreen.tsx +1 -1
  407. package/src/react/web/ui/ConnectWallet/screens/WalletConnectDisconnectScreen.tsx +2 -2
  408. package/src/react/web/ui/ConnectWallet/screens/WalletConnectReceiverScreen.tsx +2 -2
  409. package/src/react/web/ui/ConnectWallet/screens/WalletLogoSpinner.tsx +1 -1
  410. package/src/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.tsx +2 -2
  411. package/src/react/web/ui/TransactionButton/ExecutingScreen.tsx +1 -1
  412. package/src/react/web/ui/TransactionButton/index.tsx +1 -1
  413. package/src/react/web/ui/components/ChainName.tsx +1 -1
  414. package/src/react/web/ui/components/Modal.tsx +1 -1
  415. package/src/react/web/ui/components/basic.tsx +1 -1
  416. package/src/react/web/wallets/in-app/CountrySelector.tsx +1 -1
  417. package/src/react/web/wallets/in-app/WalletAuth.tsx +3 -2
  418. package/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx +3 -3
  419. package/src/react/web/wallets/shared/ConnectingScreen.tsx +1 -1
  420. package/src/react/web/wallets/shared/OTPLoginUI.tsx +8 -4
  421. package/src/react/web/wallets/shared/PassKeyLogin.tsx +6 -3
  422. package/src/react/web/wallets/shared/SocialLogin.tsx +3 -2
  423. package/src/react/web/wallets/shared/oauthSignIn.ts +1 -1
  424. package/src/storage/upload/web-node.ts +10 -0
  425. package/src/utils/fetch.test.ts +1 -1
  426. package/src/utils/fetch.ts +1 -1
  427. package/src/version.ts +1 -1
  428. package/src/wallets/in-app/core/authentication/client-scoped-storage.ts +14 -0
  429. package/src/wallets/in-app/core/authentication/getLoginPath.ts +1 -1
  430. package/src/wallets/in-app/core/authentication/guest.ts +18 -2
  431. package/src/wallets/in-app/core/authentication/linkAccount.ts +15 -11
  432. package/src/wallets/in-app/core/authentication/passkeys.ts +1 -1
  433. package/src/wallets/in-app/core/authentication/siwe.ts +1 -1
  434. package/src/wallets/in-app/core/authentication/types.ts +10 -8
  435. package/src/wallets/in-app/core/constants/settings.ts +6 -0
  436. package/src/wallets/in-app/core/interfaces/connector.ts +4 -0
  437. package/src/wallets/in-app/core/wallet/ecosystem-core.ts +1 -40
  438. package/src/wallets/in-app/core/wallet/in-app-core.ts +1 -58
  439. package/src/wallets/in-app/core/wallet/types.ts +6 -0
  440. package/src/wallets/in-app/native/auth/index.ts +62 -6
  441. package/src/wallets/in-app/native/auth/native-auth.ts +3 -1
  442. package/src/wallets/in-app/native/native-connector.ts +54 -27
  443. package/src/wallets/in-app/web/lib/actions/generate-wallet.enclave.ts +1 -1
  444. package/src/wallets/in-app/web/lib/actions/get-enclave-user-status.ts +1 -1
  445. package/src/wallets/in-app/web/lib/actions/sign-message.enclave.ts +2 -2
  446. package/src/wallets/in-app/web/lib/actions/sign-transaction.enclave.ts +2 -2
  447. package/src/wallets/in-app/web/lib/actions/sign-typed-data.enclave.ts +2 -2
  448. package/src/wallets/in-app/web/lib/auth/abstract-login.ts +2 -1
  449. package/src/wallets/in-app/web/lib/auth/iframe-auth.ts +6 -8
  450. package/src/wallets/in-app/web/lib/auth/index.ts +89 -19
  451. package/src/wallets/in-app/web/lib/auth/oauth.ts +1 -1
  452. package/src/wallets/in-app/web/lib/auth/otp.ts +1 -1
  453. package/src/wallets/in-app/web/lib/enclave-wallet.ts +9 -13
  454. package/src/wallets/in-app/web/lib/get-auth-token.ts +2 -1
  455. package/src/wallets/in-app/web/lib/iframe-wallet.ts +5 -9
  456. package/src/wallets/in-app/web/lib/web-connector.ts +38 -4
  457. package/src/wallets/in-app/web/types.ts +1 -6
  458. package/src/wallets/in-app/web/utils/iFrameCommunication/InAppWalletIframeCommunicator.ts +1 -1
  459. package/dist/cjs/react/core/hooks/others/useProfiles.js.map +0 -1
  460. package/dist/cjs/react/core/hooks/wallets/useAdminAccount.js.map +0 -1
  461. package/dist/cjs/wallets/in-app/core/wallet/profiles.js +0 -61
  462. package/dist/cjs/wallets/in-app/core/wallet/profiles.js.map +0 -1
  463. package/dist/esm/react/core/hooks/others/useProfiles.js.map +0 -1
  464. package/dist/esm/react/core/hooks/wallets/useAdminAccount.js.map +0 -1
  465. package/dist/esm/wallets/in-app/core/wallet/profiles.js +0 -57
  466. package/dist/esm/wallets/in-app/core/wallet/profiles.js.map +0 -1
  467. package/dist/types/react/core/hooks/others/useProfiles.d.ts.map +0 -1
  468. package/dist/types/react/core/hooks/wallets/useAdminAccount.d.ts.map +0 -1
  469. package/dist/types/wallets/in-app/core/wallet/profiles.d.ts +0 -49
  470. package/dist/types/wallets/in-app/core/wallet/profiles.d.ts.map +0 -1
  471. package/src/wallets/in-app/core/wallet/profiles.ts +0 -76
  472. /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/useAdminAccount.js";
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";
@@ -283,7 +283,7 @@ function SendFundsForm(props: {
283
283
  <Input
284
284
  required
285
285
  id="receiver"
286
- placeholder={"0x... or ENS name"}
286
+ placeholder="0x... or ENS name"
287
287
  variant="outline"
288
288
  value={receiverAddress}
289
289
  onChange={(e) => {
@@ -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/useAdminAccount.js";
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={"80"} />
118
+ <WalletImage id={wallet.id} client={props.client} size="80" />
119
119
  </PulsatingContainer>
120
120
  </Container>
121
121
 
@@ -68,7 +68,7 @@ export function StartScreen(props: {
68
68
  />
69
69
  ) : (
70
70
  <GlobalContainer>
71
- <GlobeIcon size={"150"} />
71
+ <GlobeIcon size="150" />
72
72
  </GlobalContainer>
73
73
  )}
74
74
  </Container>
@@ -41,7 +41,7 @@ export function WalletConnectDisconnectScreen(props: {
41
41
  <WalletLogoSpinner
42
42
  client={props.client}
43
43
  error={!!props.error}
44
- id={"walletConnect"}
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={"walletConnect"}
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>
@@ -59,7 +59,7 @@ export function WalletLogoSpinner(props: {
59
59
  )}
60
60
 
61
61
  <WalletBg>
62
- <WalletImage id={props.id} size={"68"} client={props.client} />
62
+ <WalletImage id={props.id} size="68" client={props.client} />
63
63
  </WalletBg>
64
64
  </div>
65
65
  </div>
@@ -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={"success"}>
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={"danger"}>
184
+ <Text size="md" color="danger">
185
185
  <CrossCircledIcon width={iconSize.md} height={iconSize.md} />
186
186
  </Text>
187
187
  )}
@@ -115,7 +115,7 @@ export function ExecutingTxScreen(props: {
115
115
  color: "inherit",
116
116
  }}
117
117
  >
118
- View on Explorer{" "}
118
+ View on Explorer
119
119
  <ExternalLinkIcon width={iconSize.sm} height={iconSize.sm} />
120
120
  </ButtonLink>
121
121
  </>
@@ -156,7 +156,7 @@ export function TransactionButton(props: TransactionButtonProps) {
156
156
  <Button
157
157
  gap="xs"
158
158
  disabled={!account || disabled || isPending}
159
- variant={"primary"}
159
+ variant="primary"
160
160
  unstyled={unstyled}
161
161
  data-is-loading={isPending}
162
162
  onClick={() => handleClick()}
@@ -24,7 +24,7 @@ export const ChainName: React.FC<{
24
24
  );
25
25
  }
26
26
 
27
- return <Skeleton width={"50px"} height={fontSize[props.size]} />;
27
+ return <Skeleton width="50px" height={fontSize[props.size]} />;
28
28
  };
29
29
 
30
30
  function shorterChainName(name: string) {
@@ -120,7 +120,7 @@ export const Modal: React.FC<{
120
120
  </Dialog.Title>
121
121
  {props.size === "compact" ? (
122
122
  <DynamicHeight maxHeight={compactModalMaxHeight}>
123
- {props.children}{" "}
123
+ {props.children}
124
124
  </DynamicHeight>
125
125
  ) : (
126
126
  props.children
@@ -57,7 +57,7 @@ export function ModalHeader(props: {
57
57
  }}
58
58
  />
59
59
  )}
60
- <Container flex="row" gap="xs" center={"both"}>
60
+ <Container flex="row" gap="xs" center="both">
61
61
  {typeof title === "string" ? <ModalTitle>{title}</ModalTitle> : title}
62
62
  </Container>
63
63
  </div>
@@ -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/core/wallet/profiles.js";
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(wallet as Wallet<"inApp">, {
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/core/wallet/profiles.js";
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(wallet, connectOptions);
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={"outline"}
353
+ variant="outline"
354
354
  disabled={props.disabled}
355
355
  onClick={() => {
356
356
  handleSocialLogin(loginMethod as SocialAuthOption);
@@ -86,7 +86,7 @@ export const ConnectingScreen: React.FC<{
86
86
  alignItems: "center",
87
87
  }}
88
88
  >
89
- <ReloadIcon width={iconSize.sm} height={iconSize.sm} />{" "}
89
+ <ReloadIcon width={iconSize.sm} height={iconSize.sm} />
90
90
  {locale.tryAgain}
91
91
  </Button>
92
92
  </Container>
@@ -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 { linkProfile } from "../../../../wallets/in-app/core/wallet/profiles.js";
8
- import { preAuthenticate } from "../../../../wallets/in-app/web/lib/auth/index.js";
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(wallet as Wallet<"inApp">, {
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(wallet as Wallet<"inApp">, {
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(wallet as Wallet<"inApp">, {
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(wallet as Wallet<"inApp">, {
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(wallet as Wallet<"inApp">, {
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
  );
@@ -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/web/types.js";
3
+ import type { Ecosystem } from "../wallets/in-app/core/wallet/types.js";
4
4
  import {
5
5
  IS_THIRDWEB_URL_CACHE,
6
6
  getClientFetch,
@@ -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/web/types.js";
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.58.4";
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 "../../web/types.js";
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 type { Ecosystem } from "../../web/types.js";
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: "guest",
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 "../../web/types.js";
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 = localStorage.getItem(
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
- }: { client: ThirdwebClient; ecosystem?: Ecosystem }): Promise<Profile[]> {
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 = localStorage.getItem(
72
- `walletToken-${client.clientId}${ecosystem?.id ? `-${ecosystem.id}` : ""}`,
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 "../../web/types.js";
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 "../../web/types.js";
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 "../../web/types.js";
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
  }