Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
70f8efd
feat: add Base Account SDK connector
youssefea Jan 20, 2026
d26c9d3
update wagmi to v3
lionellbriones Jan 21, 2026
d671c9c
missed deprecated wagmi exports
lionellbriones Jan 21, 2026
b38537a
update viem and permissionless
lionellbriones Jan 21, 2026
46d031d
update viem peer dependency
lionellbriones Jan 21, 2026
1fa1285
update package-lock
lionellbriones Jan 21, 2026
fb9b068
update nextjs 14
lionellbriones Jan 22, 2026
8c0215a
nextjs 15
lionellbriones Jan 22, 2026
af377d0
update nextjs demo to 16
lionellbriones Jan 22, 2026
ae93ea4
minor dependency updates
lionellbriones Jan 27, 2026
9726fb4
add widget context
lionellbriones Jan 30, 2026
16d01bf
add functions to widget context
lionellbriones Jan 30, 2026
dea626a
use useWidget for non function props
lionellbriones Jan 30, 2026
dd3265d
Merge pull request #2351 from Web3Auth/feat/mur-widget-context
arch1995 Jan 30, 2026
8c63a29
use useWidget hook
lionellbriones Jan 30, 2026
dc0f5d1
use props for dumb components instead of hook
lionellbriones Jan 30, 2026
57e7227
fix issue and default values
lionellbriones Jan 30, 2026
678c835
create modal state context
lionellbriones Feb 2, 2026
72d1df0
Merge pull request #2341 from Web3Auth/feat/update-wagmi
chaitanyapotti Feb 2, 2026
220a7be
Merge branch 'v10'
chaitanyapotti Feb 2, 2026
7f7e21b
create modal state context
lionellbriones Feb 3, 2026
9873e42
Merge pull request #2361 from Web3Auth/v10
chaitanyapotti Feb 3, 2026
2928e7b
use modal state context
lionellbriones Feb 3, 2026
45e5745
remove themed context
lionellbriones Feb 4, 2026
9659a62
Merge branch 'master' into feat/modal-ui-revamp
lionellbriones Feb 4, 2026
9c8e388
Merge branch 'feat/modal-ui-revamp' into feat/mur-use-widget-context
lionellbriones Feb 4, 2026
bea656d
Merge branch 'feat/mur-use-widget-context' into feat/mur-modal-state
lionellbriones Feb 4, 2026
2007982
update connect wallet props
lionellbriones Feb 4, 2026
a16921f
Merge branch 'feat/mur-modal-state' into feat/mur-remove-theme-context
lionellbriones Feb 4, 2026
ebb7aed
set isDark default to true
lionellbriones Feb 4, 2026
43afbc7
use isDark from props on button wallet
lionellbriones Feb 4, 2026
facbf4d
separate containers from components
lionellbriones Feb 4, 2026
171fcc9
fix lints
lionellbriones Feb 4, 2026
a94171d
fix import sort
lionellbriones Feb 4, 2026
84b3d90
Merge pull request #2358 from Web3Auth/feat/modal-ui-revamp
chaitanyapotti Feb 4, 2026
3219122
Merge branch 'master' into feat/mur-use-widget-context
chaitanyapotti Feb 4, 2026
79cfa4d
set ui config defaults in loginModal
lionellbriones Feb 4, 2026
dd5c371
for boolean uiconfig check undefined
lionellbriones Feb 4, 2026
1acd70e
Merge pull request #2352 from Web3Auth/feat/mur-use-widget-context
chaitanyapotti Feb 4, 2026
8868f40
Merge branch 'master' into feat/mur-modal-state
lionellbriones Feb 4, 2026
bd9ba82
Merge branch 'feat/mur-modal-state' into feat/mur-remove-theme-context
lionellbriones Feb 4, 2026
8c759b0
import dispatch and SetStateAction as type
lionellbriones Feb 4, 2026
e399812
cleanup modal state
chaitanyapotti Feb 4, 2026
f4ed25a
simplify memo
chaitanyapotti Feb 4, 2026
48489c0
remove React from imports
lionellbriones Feb 4, 2026
aa4d90e
Merge branch 'feat/mur-modal-state' into feat/mur-remove-theme-context
lionellbriones Feb 4, 2026
4002817
Merge branch 'feat/mur-remove-theme-context' into feat/mur-organize-file
lionellbriones Feb 4, 2026
9e987d3
Merge pull request #2362 from Web3Auth/feat/mur-modal-state
chaitanyapotti Feb 4, 2026
d5b95d3
Merge branch 'master' into feat/mur-remove-theme-context
chaitanyapotti Feb 4, 2026
748415a
Merge pull request #2363 from Web3Auth/feat/mur-remove-theme-context
chaitanyapotti Feb 4, 2026
37c7ed5
Merge branch 'master' into feat/mur-organize-file
chaitanyapotti Feb 4, 2026
d5790ac
Merge pull request #2364 from Web3Auth/feat/mur-organize-file
chaitanyapotti Feb 4, 2026
d7881d1
cleanup props
lionellbriones Feb 5, 2026
e75a7da
put rootelement to a variable
lionellbriones Feb 5, 2026
a30b792
Merge pull request #2365 from Web3Auth/feat/widget-context-cleanup
chaitanyapotti Feb 5, 2026
ca25b5d
remove modal visibility delayed
lionellbriones Feb 5, 2026
c884999
remove duplicate connect wallet qr view
lionellbriones Feb 9, 2026
27e196d
renamed showExternalWalletPage to shouldShowLoginPage
lionellbriones Feb 9, 2026
ed79627
Merge pull request #2369 from Web3Auth/feat/duplicate-connect-wallet-qr
chaitanyapotti Feb 9, 2026
a4b7ab6
add toast and body state to root context
lionellbriones Feb 9, 2026
0c9e039
move install links and multichain selector to new container
lionellbriones Feb 9, 2026
eba59c7
move desktopInstallLinks and mobileInstallLinks inside bodysheets
lionellbriones Feb 9, 2026
e9c7e30
move preHandleExternalWalletClick to modal state context
lionellbriones Feb 9, 2026
140aaf4
simplify toggle showExternalWallets
lionellbriones Feb 9, 2026
426a49c
simplify handleSocialLoginClick
lionellbriones Feb 9, 2026
4238806
remove props drill for connect and signature auth mode
lionellbriones Feb 9, 2026
46d5ef9
clean up root component and modalstatecontext
lionellbriones Feb 10, 2026
000ff73
derive disable back button inside connect wallet
lionellbriones Feb 10, 2026
0509aae
clean handleExternalWalletClick
lionellbriones Feb 10, 2026
9be8455
remove connector from socialLogin state
lionellbriones Feb 10, 2026
cddd9a5
rename pages to describe contents better
lionellbriones Feb 10, 2026
024da5f
use resize observer for changing the modal height
lionellbriones Feb 10, 2026
be8b4ad
Merge pull request #2370 from Web3Auth/feat/modal-state-context-refactor
chaitanyapotti Feb 10, 2026
3edd444
Merge pull request #2371 from Web3Auth/feat/remove-social-login-conne…
chaitanyapotti Feb 10, 2026
f5610fe
Merge pull request #2372 from Web3Auth/feat/rename-pages
chaitanyapotti Feb 10, 2026
e216514
Merge branch 'master' into feat/dynamic-modal-height
lionellbriones Feb 10, 2026
bb41ea8
keep the modal height when showing loader
lionellbriones Feb 10, 2026
2f91546
Merge pull request #2373 from Web3Auth/feat/dynamic-modal-height
chaitanyapotti Feb 10, 2026
fd6fc67
Merge branch 'v10'
chaitanyapotti Feb 11, 2026
2dd724d
adding package exports
youssefea Feb 23, 2026
9230cf7
update name
youssefea Feb 23, 2026
367d1f3
remove base logo
youssefea Feb 23, 2026
703b279
Merge remote-tracking branch 'origin/master' into feat/base-account-c…
youssefea Feb 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions demo/nextjs-ssr-app/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export const metadata = {
description: "Web3Auth NextJS Quick Start",
};

export default function RootLayout({ children }: { children: React.ReactNode }) {
const web3authInitialState = cookieToWeb3AuthState((headers()).get('cookie'))
export default async function RootLayout({ children }: { children: React.ReactNode }) {
const web3authInitialState = cookieToWeb3AuthState(((await headers())).get('cookie'))
console.log("web3authInitialState", web3authInitialState)
return (
<html lang="en">
Expand Down
11 changes: 6 additions & 5 deletions demo/nextjs-ssr-app/components/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,20 @@ import {
useWeb3AuthDisconnect,
useWeb3AuthUser,
} from "@web3auth/modal/react";
import { useAccount, useBalance, useChainId, useSignMessage, useSignTypedData, useSwitchChain } from "wagmi";
import { useConnection, useBalance, useChainId, useSignMessage, useSignTypedData, useSwitchChain, useChains } from "wagmi";

const Main = () => {
const { provider, isConnected } = useWeb3Auth();
const { chains, switchChain } = useSwitchChain();
const { mutate: switchChain } = useSwitchChain();
const chains = useChains();
const chainId = useChainId();
const { loading: connecting, connect, error: connectingError, connectorName } = useWeb3AuthConnect();
const { disconnect } = useWeb3AuthDisconnect();
const { signMessageAsync, data: signedMessageData } = useSignMessage();
const { address, isConnected: isWagmiConnected } = useAccount();
const { mutateAsync: signMessageAsync, data: signedMessageData } = useSignMessage();
const { address, isConnected: isWagmiConnected } = useConnection();
const { userInfo, isMFAEnabled } = useWeb3AuthUser();
const { data: balance } = useBalance({ address });
const { signTypedData, data: signedTypedDataData } = useSignTypedData();
const { mutate: signTypedData, data: signedTypedDataData } = useSignTypedData();
const { enableMFA, loading: isEnableMFALoading, error: enableMFAError } = useEnableMFA();
const { manageMFA, loading: isManageMFALoading, error: manageMFAError } = useManageMFA();
const { showCheckout, loading: isCheckoutLoading, error: checkoutError } = useCheckout();
Expand Down
11 changes: 11 additions & 0 deletions demo/nextjs-ssr-app/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig, globalIgnores } from "eslint/config";
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
import path from "node:path";
import { fileURLToPath } from "node:url";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

export default defineConfig([globalIgnores(["**/*.config.js"]), {
extends: [...nextCoreWebVitals],
}]);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flat eslint config spreads non-iterable

Medium Severity

eslint.config.mjs uses extends: [...nextCoreWebVitals], but eslint-config-next/core-web-vitals is not guaranteed to be an array/iterable in flat config form. If it’s an object/string config, spreading throws at load time and breaks eslint execution for the demo.

Fix in Cursor Fix in Web

3 changes: 2 additions & 1 deletion demo/nextjs-ssr-app/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/dev/types/routes.d.ts";

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
Loading