diff --git a/dapps/appkit-siwe/next/app/config/index.tsx b/dapps/appkit-siwe/next/app/config/index.tsx index 08d76327b..447e4c945 100644 --- a/dapps/appkit-siwe/next/app/config/index.tsx +++ b/dapps/appkit-siwe/next/app/config/index.tsx @@ -73,6 +73,10 @@ export const siweConfig = createSIWEConfig({ } const { address, chainId } = session as unknown as SIWESession; + // Validate address and chainId types + if (typeof address !== "string" || typeof chainId !== "number") { + return null; + } return { address, chainId }; },