Reown Authentication is our flagship SIWX (Sign In With X) solution - the recommended way to handle user authentication for modern web3 applications. Built specifically for multi-chain environments, it abstracts away the complexity of validating wallets across EVM, Solana, and Bitcoin networks.With Reown Authentication you will be able to see and control the sessions of your users, get insights and much more. Read more about Reown Authentication features in the dedicated documentation.
ReownAuthentication was previously named CloudAuthSIWX, it has been renamed since version 1.7.13. If you were using
the previous class, you will not need to update your code, both class names work identically.
import { createAppKit } from '@reown/appkit'// Add the following code lineimport { ReownAuthentication } from '@reown/appkit-siwx'const appkit = createAppKit({ projectId, networks, metadata, // Add the following code line siwx: new ReownAuthentication()})
Now your Dapp is ready to use the Reown Authentication within your SIWX configuration.
With ReownAuthentication you don’t need to do anything else, it will work out of the box, but you can configure some parameters to customize the experience.
AppKit provides a useAppKitSIWX hook that allows you to interact with Reown Authentication. This hook provides a set of methods to manage sessions, retrieve user information, and update session metadata.
import type { ReownAuthentication } from '@reown/appkit-siwx'import { useAppKitSIWX } from '@reown/appkit-siwx/react'function Component() { // ... const siwx = useAppKitSIWX<ReownAuthentication>() // ...}
Reown Authentication provides a way for you to store arbitrary information about your users through the AppKit Account Metadata.Updating the session account metadata is done using the setSessionAccountMetadata method:
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Reown Docs","description":"Reown (formerly WalletConnect) developer documentation. Build seamless onchain apps with AppKit — an all-in-one SDK for wallet connections, transactions, email \u0026 social logins, on-ramp, swaps, and notifications — and use Reown Cloud to configure projects, analytics, and APIs.","colors":{"primary":"#008847","light":"#008847","dark":"#008847"},"logo":{"light":"https://mintcdn.com/reown-5552f0bb/lMuO-Idy_LVWUfhr/images/docs-logo.svg?fit=max\u0026auto=format\u0026n=lMuO-Idy_LVWUfhr\u0026q=85\u0026s=10bd44e2a64fb9a16e09e8306d22c195","dark":"https://mintcdn.com/reown-5552f0bb/lMuO-Idy_LVWUfhr/images/docs-logo.svg?fit=max\u0026auto=format\u0026n=lMuO-Idy_LVWUfhr\u0026q=85\u0026s=10bd44e2a64fb9a16e09e8306d22c195"},"favicon":"https://mintcdn.com/reown-5552f0bb/EKbxEvu_zecC7Jp2/images/favicon.png?fit=max\u0026auto=format\u0026n=EKbxEvu_zecC7Jp2\u0026q=85\u0026s=7637f39140d205a4ea9b6504ddd48afc","background":{"color":{"dark":"#202020"}},"navbar":{"links":[{"href":"https://dashboard.reown.com/?utm_source=navbar\u0026utm_medium=docs\u0026utm_campaign=backlinks\u0026_gl=1*9m24on*_ga*ODM2NjA0NjY2LjE3NDI0MzkzNzM.*_ga_X117BZWK4X*MTc0MjQzOTM3My4xLjEuMTc0MjQzOTkzNi4wLjAuMA..","label":"Reown Dashboard"}],"primary":{"type":"button","label":"AppKit Demo","href":"https://demo.reown.com/?utm_source=navbar\u0026utm_medium=docs\u0026utm_campaign=backlinks"}},"footer":{"socials":{"website":"https://reown.com/","x":"https://x.com/reown_","discord":"https://discord.gg/reown","linkedin":"https://www.linkedin.com/company/re-own","github":"https://github.com/reown-com/reown-docs","youtube":"https://www.youtube.com/@re_own"}},"integrations":{"gtm":{"tagId":"GTM-56G35T8X"},"posthog":{"apiKey":"phc_8DvuGoAsaF1d8p51zQsrA6PY7KFtbBxfMfl9sgOeS63","apiHost":"https://pineapple.reown.com"}},"contextual":{"options":["chatgpt","claude","copy","view","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Report an Issue","icon":"bug","href":"/advanced/report-an-issue"},{"anchor":"Blog","icon":"newspaper","href":"https://reown.com/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"reown-5552f0bb","hasAudioNarration":false,"actualSubdomain":"reown-5552f0bb","customDomains":["docs.reown.com"],"gitSource":{"type":"github","owner":"reown-com","repo":"reown-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad781c30309bf8cb8b3c204","collectionId":"ca683cfd-e9fd-4f93-bbe2-7f5f9bacaba5","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad781c30309bf8cb8b3c204"},"feedback":{"thumbs":true,"issues":true,"edits":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ad781c30309bf8cb8b3c204","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Fundamentals","count":68},{"language":"default","tag":"Features","count":47},{"language":"default","tag":"AppKit - Overview","count":41},{"language":"default","tag":"Authentication","count":27},{"language":"default","tag":"Payments \u0026 Transactions","count":23},{"language":"default","tag":"Networks","count":15},{"language":"default","tag":"React","count":14},{"language":"default","tag":"Vue","count":14},{"language":"default","tag":"JavaScript","count":13},{"language":"default","tag":"Next","count":13}]},"assistantConfig":{"enableStarterQuestions":true,"enableContextualStarterQuestions":false},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[{"_id":"6a550b8222e146d6511fcd18","deploymentId":"67cf1221bfc576a36d6c6167","questionText":"How can I help you today?","status":"active","generatedBy":"manual","createdAt":"2026-07-13T16:00:02.025Z","updatedAt":"2026-07-13T16:00:02.025Z","__v":0}],"googleFontsInlined":false},"customCss":[{"filePath":"components/Tabs/styles.module.css","content":".tabList{margin-bottom:var(--ifm-leading)}.tabItem{margin-top:0!important}"}],"page":{"pagePath":"appkit/react/core/reown-authentication","slug":"/appkit/react/core/reown-authentication","pageMetadata":{"title":"SIWX Implementation","displayed_sidebar":"mainSidebar","description":null,"href":"/appkit/react/core/reown-authentication"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`reown-authentication-siwx-usage`,children:`Reown Authentication SIWX Usage`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Reown Authentication is our flagship SIWX (Sign In With X) solution`}),` - the recommended way to handle user authentication for modern web3 applications. Built specifically for multi-chain environments, it abstracts away the complexity of validating wallets across `,_jsx(_components.strong,{children:`EVM, Solana, and Bitcoin networks`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`With Reown Authentication you will be able to see and control the sessions of your users, get insights and much more. Read more about `,_jsx(_components.a,{href:`/cloud/reown-authentication`,children:`Reown Authentication`}),` features in the dedicated documentation.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`ReownAuthentication`}),` was previously named `,_jsx(_components.code,{children:`CloudAuthSIWX`}),`, it has been renamed since version `,_jsx(_components.code,{children:`1.7.13`}),`. If you were using\\r\nthe previous class, you will not need to update your code, both class names work identically.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`installation`,children:`Installation`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`npm`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @reown/appkit-siwx`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Yarn`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`yarn`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @reown/appkit-siwx`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Bun`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bun`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` a`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @reown/appkit-siwx`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`pnpm`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @reown/appkit-siwx`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`usage`,children:`Usage`}),`\n`,_jsx(CodeBlock,{filename:``,highlight:`[3,10]`,numberOfLines:`11`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`createAppKit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@reown/appkit'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Add the following code line`})}),`\n`,_jsxs(_components.span,{className:`line line-highlight`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ReownAuthentication`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@reown/appkit-siwx'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` appkit`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` createAppKit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` projectId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` networks`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` metadata`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Add the following code line`})}),`\n`,_jsxs(_components.span,{className:`line line-highlight`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` siwx:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` ReownAuthentication`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Now your Dapp is ready to use the `,_jsx(_components.strong,{children:`Reown Authentication`}),` within your SIWX configuration.`]}),`\n`,_jsx(Heading,{level:`3`,id:`extra-configuration`,children:`Extra configuration`}),`\n`,_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`ReownAuthentication`}),` you don’t need to do anything else, it will work out of the box, but you can configure some parameters to customize the experience.`]}),`\n`,_jsx(Heading,{level:`4`,id:`available-parameters`,children:`Available Parameters`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` ReownAuthentication`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` localAuthStorageKey?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` string`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Default: '@appkit/siwx-auth-token'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` localNonceStorageKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` string`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Default: '@appkit/siwx-nonce-token'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` required`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` boolean`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Default: true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`examples`,children:`Examples`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Custom storage keys:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` ReownAuthentication`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` localAuthStorageKey:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'my-app-auth'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` localNonceStorageKey:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'my-app-nonce'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Optional authentication (wallet stays connected if user denies signing):`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` ReownAuthentication`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` required:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`interacting-with-reown-authentication`,children:`Interacting with Reown Authentication`}),`\n`,_jsxs(_components.p,{children:[`AppKit provides a `,_jsx(_components.code,{children:`useAppKitSIWX`}),` hook that allows you to interact with Reown Authentication. This hook provides a set of methods to manage sessions, retrieve user information, and update session metadata.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ReownAuthentication`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@reown/appkit-siwx'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`useAppKitSIWX`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@reown/appkit-siwx/react'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Component`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ...`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` siwx`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` useAppKitSIWX`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ReownAuthentication`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`interactions`,children:`Interactions`}),`\n`,_jsx(Heading,{level:`4`,id:`getsessionaccount`,children:_jsx(_components.code,{children:`getSessionAccount`})}),`\n`,_jsxs(_components.p,{children:[`You can retrieve the session account data using the `,_jsx(_components.code,{children:`getSessionAccount`}),` method:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Component`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ...`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` siwx`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` useAppKitSIWX`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ReownAuthentication`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`sessionAccount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`setSessionAccount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` useState`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ReownAuthentication`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`SessionAccount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` useEffect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`siwx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` siwx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getSessionAccount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`setSessionAccount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }, [`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`siwx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`setsessionaccountmetadata`,children:_jsx(_components.code,{children:`setSessionAccountMetadata`})}),`\n`,_jsx(_components.p,{children:`Reown Authentication provides a way for you to store arbitrary information about your users through the AppKit Account Metadata.`}),`\n`,_jsxs(_components.p,{children:[`Updating the session account metadata is done using the `,_jsx(_components.code,{children:`setSessionAccountMetadata`}),` method:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Component`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ...`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` siwx`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` useAppKitSIWX`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ReownAuthentication`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` mutateMetadata`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`metadata`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` object`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`siwx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` siwx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setSessionAccountMetadata`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`metadata`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`You may use the session metadata through the `,_jsx(_components.code,{children:`getSessionAccount`}),` method:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Component`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ...`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` siwx`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` useAppKitSIWX`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ReownAuthentication`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` queryMetadata`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`siwx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` account`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` siwx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getSessionAccount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` account`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`appKitAccount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`metadata`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`events`,children:_jsx(_components.code,{children:`events`})}),`\n`,_jsx(_components.p,{children:`Reown Authentication provides events that you can listen to for session management and authentication state changes:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`26`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`26`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SIWXSession`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ReownAuthentication`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@reown/appkit-siwx'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`useAppKitSIWX`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@reown/appkit-siwx/react'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Component`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ...`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` siwx`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` useAppKitSIWX`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ReownAuthentication`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` useEffect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`siwx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Add event listeners`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` unsubscribe`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` siwx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`on`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'sessionChanged'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`session`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` SIWXSession`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` undefined`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Session changed:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`session`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Cleanup listeners`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` unsubscribe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // or`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` siwx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`removeAllListeners`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }, [`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`siwx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"SIWX Implementation","displayed_sidebar":"mainSidebar","description":null,"href":"/appkit/react/core/reown-authentication"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Reown Authentication SIWX Usage","slug":"reown-authentication-siwx-usage","depth":1,"children":[{"title":"Installation","slug":"installation","depth":3,"children":[]},{"title":"Usage","slug":"usage","depth":3,"children":[]},{"title":"Extra configuration","slug":"extra-configuration","depth":3,"children":[]},{"title":"Available Parameters","slug":"available-parameters","depth":4,"children":[]},{"title":"Examples","slug":"examples","depth":4,"children":[]}]},{"title":"Interacting with Reown Authentication","slug":"interacting-with-reown-authentication","depth":2,"children":[{"title":"Interactions","slug":"interactions","depth":3,"children":[]},{"title":"getSessionAccount","slug":"getsessionaccount","depth":4,"children":[]},{"title":"setSessionAccountMetadata","slug":"setsessionaccountmetadata","depth":4,"children":[]},{"title":"events","slug":"events","depth":4,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"reown-5552f0bb","siteName":"Reown Docs","title":"SIWX Implementation - Reown Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-20T14:59:49.745Z","originalFileLocation":"appkit/react/core/reown-authentication.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Reown Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/reown-5552f0bb/itZwYYdfkZgx4hRZ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/reown-5552f0bb/itZwYYdfkZgx4hRZ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/reown-5552f0bb/itZwYYdfkZgx4hRZ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/reown-5552f0bb/itZwYYdfkZgx4hRZ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/reown-5552f0bb/itZwYYdfkZgx4hRZ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/reown-5552f0bb/itZwYYdfkZgx4hRZ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/reown-5552f0bb/itZwYYdfkZgx4hRZ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/reown-5552f0bb/itZwYYdfkZgx4hRZ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/reown-5552f0bb/itZwYYdfkZgx4hRZ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"SIWX Implementation - Reown Docs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Reown Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.reown.com/appkit/react/core/reown-authentication\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://reown-5552f0bb.mintlify.app/_mintlify/api/og/v2?division=Documentation\u0026amp;title=SIWX+Implementation\u0026amp;theme=29a875b2a9cfad50361dd036\u0026amp;signature=c96874aa66318d16eee2780cf95e3ef864a9db2367af24767b7679411d38f9d9\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"SIWX Implementation - Reown Docs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://reown-5552f0bb.mintlify.app/_mintlify/api/og/v2?division=Documentation\u0026amp;title=SIWX+Implementation\u0026amp;theme=29a875b2a9cfad50361dd036\u0026amp;signature=c96874aa66318d16eee2780cf95e3ef864a9db2367af24767b7679411d38f9d9\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/reown-5552f0bb/itZwYYdfkZgx4hRZ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Reown Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#008847\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.reown.com/appkit/react/core/reown-authentication\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/appkit/react/core/reown-authentication.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Reown Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Reown Docs","nav":{"global":{"anchors":[{"anchor":"Report an Issue","icon":"bug","href":"/advanced/report-an-issue"},{"anchor":"Blog","icon":"newspaper","href":"https://reown.com/blog"}]},"dropdowns":[{"dropdown":"AppKit - Overview","icon":"layer-group","pages":[{"group":"Getting Started","pages":[{"title":"Get started with Reown","href":"/appkit/overview"},{"group":"Pricing Plans","pages":[{"title":"Starter Plan","sidebarTitle":"Starter","href":"/appkit/paid-plans/starter"},{"title":"Pro Plan","sidebarTitle":"Pro","href":"/appkit/paid-plans/pro"},{"title":"Growth Plan","sidebarTitle":"Growth","href":"/appkit/paid-plans/growth"},{"title":"Enterprise Plan","sidebarTitle":"Enterprise","href":"/appkit/paid-plans/enterprise"}]}]},{"group":"Accounts \u0026 Authentication","pages":[{"group":"Authentication","pages":[{"title":"Email \u0026 Socials","sidebarTitle":"Email \u0026 Social Login","href":"/appkit/authentication/socials"},{"title":"One-Click Auth","href":"/appkit/authentication/one-click-auth"},{"title":"Multichain Authentication (SIWX)","sidebarTitle":"Multichain Authentication (SIWX)","href":"/appkit/authentication/siwx/default"},{"title":"Travel Rule using AppKit","sidebarTitle":"Travel Rule","href":"/appkit/recipes/travel-rule"}]},{"group":"Smart Accounts","pages":[{"title":"Smart Accounts","sidebarTitle":"Overview","href":"/appkit/features/smart-accounts"},{"title":"Embedded Wallets Interactions (EIP-5792)","href":"/appkit/features/smart-accounts-interaction"}]},{"title":"Multiwallet Linking","href":"/appkit/features/multiwallet-linking"}]},{"group":"Data","pages":[{"title":"Analytics","href":"/cloud/analytics"}]},{"group":"Payments","pages":[{"title":"Payments","sidebarTitle":"Overview","href":"/appkit/payments/overview"},{"title":"Swaps","href":"/appkit/features/swaps"},{"group":"Fund wallets","pages":[{"title":"On-Ramp","href":"/appkit/features/onramp"},{"title":"Pay with Self-Custodial Wallets","sidebarTitle":"Self-custodial wallets","href":"/appkit/payments/pay-with-self-custodial-wallets"},{"title":"Deposit with Exchange","sidebarTitle":"Exchange Wallets","href":"/appkit/payments/deposit-with-exchange"}]}]},{"group":"Settings","pages":[{"title":"Dashboard Configuration Settings","sidebarTitle":"Dashboard Configuration","href":"/cloud/dashboard-configuration-settings"},{"title":"Customizing your UI","sidebarTitle":"Customizing your UI","href":"/appkit/customizing-ui"},{"title":"Domain Verification","sidebarTitle":"Domain Verification","href":"/appkit/domain-verification"}]},{"group":"Networks","pages":[{"title":"Supported Chains Overview","sidebarTitle":"Overview","href":"/appkit/networks/overview"},{"group":"EVM Chains","pages":[{"title":"EVM","sidebarTitle":"EVM Chains Overview","href":"/appkit/networks/evm"},{"title":"How to Sign Messages, Send Transactions, and Get Balance in EVM using AppKit with Wagmi","sidebarTitle":"EVM Transactions using Wagmi","href":"/appkit/recipes/wagmi-send-transaction"},{"title":"How to Sign Messages, Send Transactions, and Get Balance in EVM using AppKit with Ethers","sidebarTitle":"EVM Transactions using Ethers","href":"/appkit/recipes/ethers-send-transaction"},{"title":"How to Interact with EVM Smart Contracts using AppKit and React","sidebarTitle":"EVM Smart Contract Interaction","href":"/appkit/recipes/EVM-smart-contract-interaction"}]},{"group":"Solana","pages":[{"title":"Solana","sidebarTitle":"Solana Overview","href":"/appkit/networks/solana"},{"title":"How to Sign Messages, Send Transactions, and Get Balance on Solana using AppKit","sidebarTitle":"Solana Transactions using AppKit","href":"/appkit/recipes/solana-send-transaction"}]},{"group":"Bitcoin","pages":[{"title":"Bitcoin","sidebarTitle":"Bitcoin Overview","href":"/appkit/networks/bitcoin"},{"title":"How to Sign Messages, get the balance and send transactions on Bitcoin using AppKit","sidebarTitle":"Bitcoin Transactions using AppKit","href":"/appkit/recipes/bitcoin-send-transaction"}]},{"title":"TON","sidebarTitle":"TON Overview","href":"/appkit/networks/ton"},{"title":"TRON","sidebarTitle":"TRON Overview","href":"/appkit/networks/tron"},{"group":"Other Network Settings","pages":[{"title":"Add Custom Networks","sidebarTitle":"Custom Networks","href":"/appkit/networks/custom-networks"},{"title":"Multichain Support","href":"/appkit/features/multichain"},{"title":"Universal Connector to use WalletConnect QR Code","sidebarTitle":"QR Code via Universal Connector","href":"/appkit/recipes/universal-connector"},{"title":"How to Configure AppKit with Virtual TestNets?","sidebarTitle":"Configure Virtual TestNets","href":"/appkit/recipes/tenderly-virtual-testnets"}]}]},{"group":"Technical Reference","pages":[{"title":"AppKit FAQs","sidebarTitle":"FAQs","href":"/appkit/faq"},{"group":"Security","pages":[{"title":"Security Information","href":"/advanced/security/security-information"},{"title":"Content Security Policy (CSP)","href":"/advanced/security/content-security-policy"}]},{"title":"Troubleshooting","href":"/appkit/recipes/troubleshooting"},{"title":"System Status","url":"https://status.walletconnect.com/","href":"/external-link-01"}]}]},{"dropdown":"React","icon":"react","description":"AppKit on React","pages":[{"group":"Fundamentals","pages":[{"title":"Installation","href":"/appkit/react/core/installation"},{"title":"Hooks","href":"/appkit/react/core/hooks"},{"title":"Options","href":"/appkit/react/core/options"},{"title":"Components","href":"/appkit/react/core/components"},{"title":"Custom connectors","href":"/appkit/react/core/custom-connectors"},{"title":"Theming","href":"/appkit/react/core/theming"}]},{"group":"Features","pages":[{"title":"Headless","href":"/appkit/react/core/headless"},{"group":"Authentication","pages":[{"title":"Email \u0026 Socials","href":"/appkit/react/core/socials"},{"title":"Sign In With X","sidebarTitle":"Multichain Authentication","href":"/appkit/react/core/siwx"},{"title":"Sign In With Ethereum","sidebarTitle":"One-Click Auth (SIWE)","href":"/appkit/react/core/siwe"}]},{"group":"Payments \u0026 Transactions","pages":[{"group":"Fund wallets","pages":[{"title":"Pay with Self-Custodial Wallets - React","sidebarTitle":"Self-custodial wallets","href":"/appkit/react/payments/pay-with-self-custodial-wallets"},{"title":"Deposit with Exchange - React","sidebarTitle":"Exchange Wallets","href":"/appkit/react/payments/deposit-with-exchange"}]},{"title":"On-Ramp","href":"/appkit/react/transactions/onramp"},{"title":"Swaps","href":"/appkit/react/transactions/swaps"}]}]}]},{"dropdown":"Next","icon":"square-n","description":"AppKit on NextJS","pages":[{"group":"Fundamentals","pages":[{"title":"Installation","href":"/appkit/next/core/installation"},{"title":"Hooks","href":"/appkit/next/core/hooks"},{"title":"Options","href":"/appkit/next/core/options"},{"title":"Components","href":"/appkit/next/core/components"},{"title":"Custom connectors","href":"/appkit/next/core/custom-connectors"},{"title":"Theming","href":"/appkit/next/core/theming"}]},{"group":"Features","pages":[{"group":"Authentication","pages":[{"title":"Email \u0026 Socials","href":"/appkit/next/core/socials"},{"sidebarTitle":"Multichain Authentication","title":"Sign In With X","href":"/appkit/next/core/siwx"},{"title":"Sign In With Ethereum","sidebarTitle":"One-Click Auth (SIWE)","href":"/appkit/next/core/siwe"}]},{"group":"Payments \u0026 Transactions","pages":[{"group":"Fund wallets","pages":[{"title":"Pay with Self-Custodial Wallets - Next.js","sidebarTitle":"Self-custodial wallets","href":"/appkit/next/payments/pay-with-self-custodial-wallets"},{"title":"Deposit with Exchange - Next.js","sidebarTitle":"Exchange Wallets","href":"/appkit/next/payments/deposit-with-exchange"}]},{"title":"On-Ramp","href":"/appkit/next/transactions/onramp"},{"title":"Swaps","href":"/appkit/next/transactions/swaps"}]}]}]},{"dropdown":"Vue","icon":"vuejs","description":"AppKit on VueJS","pages":[{"group":"Fundamentals","pages":[{"title":"Installation","href":"/appkit/vue/core/installation"},{"title":"Composables","href":"/appkit/vue/core/composables"},{"title":"Options","href":"/appkit/vue/core/options"},{"title":"Components","href":"/appkit/vue/core/components"},{"title":"Wallet Buttons","href":"/appkit/vue/core/wallet-buttons"},{"title":"Custom connectors","href":"/appkit/vue/core/custom-connectors"},{"title":"Theming","href":"/appkit/vue/core/theming"}]},{"group":"Features","pages":[{"group":"Authentication","pages":[{"title":"Email \u0026 Socials","href":"/appkit/vue/core/socials"},{"title":"SIWX","sidebarTitle":"Multichain Authentication","href":"/appkit/vue/core/siwx"},{"title":"Sign In With Ethereum","sidebarTitle":"One-Click Auth (SIWE)","href":"/appkit/vue/core/siwe"}]},{"group":"Payments \u0026 Transactions","pages":[{"group":"Fund wallets","pages":[{"title":"Pay with Self-Custodial Wallets - Vue","sidebarTitle":"Self-custodial wallets","href":"/appkit/vue/payments/pay-with-self-custodial-wallets"},{"title":"Deposit with Exchange - Vue","sidebarTitle":"Exchange Wallets","href":"/appkit/vue/payments/deposit-with-exchange"}]},{"title":"On-Ramp","href":"/appkit/vue/transactions/onramp"},{"title":"Swaps","href":"/appkit/vue/transactions/swaps"}]}]}]},{"dropdown":"JavaScript","icon":"js","description":"AppKit on JavaScript","pages":[{"group":"Fundamentals","pages":[{"title":"Installation","href":"/appkit/javascript/core/installation"},{"title":"Actions","href":"/appkit/javascript/core/actions"},{"title":"Options","href":"/appkit/javascript/core/options"},{"title":"Components","href":"/appkit/javascript/core/components"},{"title":"Custom connectors","href":"/appkit/javascript/core/custom-connectors"},{"title":"Theming","href":"/appkit/javascript/core/theming"}]},{"group":"Features","pages":[{"group":"Authentication","pages":[{"title":"Email \u0026 Socials","href":"/appkit/javascript/core/socials"},{"title":"SIWX","sidebarTitle":"Multichain Authentication","href":"/appkit/javascript/core/siwx"},{"title":"Sign In With Ethereum","sidebarTitle":"One-Click Auth (SIWE)","href":"/appkit/javascript/core/siwe"}]},{"group":"Payments \u0026 Transactions","pages":[{"group":"Fund wallets","pages":[{"title":"Pay with Self-Custodial Wallets - Javascript","sidebarTitle":"Self-custodial wallets","href":"/appkit/javascript/payments/pay-with-self-custodial-wallets"},{"title":"Deposit with Exchange - JavaScript","sidebarTitle":"Exchange Wallets","href":"/appkit/javascript/payments/deposit-with-exchange"}]},{"title":"On-Ramp","href":"/appkit/javascript/transactions/onramp"},{"title":"Swaps","href":"/appkit/javascript/transactions/swaps"}]}]}]},{"dropdown":"Svelte","icon":"https://mintlify.s3.us-west-1.amazonaws.com/reown-5552f0bb/images/icons/svelte.svg","description":"AppKit on Svelte","pages":[{"group":"Fundamentals","pages":[{"title":"Installation","href":"/appkit/svelte/core/installation"},{"title":"Actions","href":"/appkit/svelte/core/actions"},{"title":"Options","href":"/appkit/svelte/core/options"},{"title":"Components","href":"/appkit/svelte/core/components"},{"title":"Custom Connectors","href":"/appkit/svelte/core/custom-connectors"},{"title":"Theming","href":"/appkit/svelte/core/theming"}]},{"group":"Features","pages":[{"group":"Authentication","pages":[{"title":"Email \u0026 Socials","href":"/appkit/svelte/core/socials"}]},{"group":"Payments \u0026 Transactions","pages":[{"title":"On-Ramp","href":"/appkit/svelte/transactions/onramp"},{"title":"Swaps","href":"/appkit/svelte/transactions/swaps"}]}]}]},{"dropdown":"Nuxt","icon":"mountains","description":"AppKit on Nuxt","pages":[{"group":"Fundamentals","pages":[{"title":"Installation","href":"/appkit/nuxt/core/installation"},{"title":"Options","href":"/appkit/nuxt/core/options"},{"title":"Components","href":"/appkit/nuxt/core/components"},{"title":"Composables","href":"/appkit/nuxt/core/composables"},{"title":"Wallet Buttons","href":"/appkit/nuxt/core/wallet-buttons"},{"title":"Custom Connectors","href":"/appkit/nuxt/core/custom-connectors"},{"title":"Theming","href":"/appkit/nuxt/core/theming"}]},{"group":"Features","pages":[{"group":"Authentication","pages":[{"title":"Email \u0026 Socials","href":"/appkit/nuxt/core/socials"}]},{"group":"Payments \u0026 Transactions","pages":[{"title":"On-Ramp","href":"/appkit/nuxt/transactions/onramp"},{"title":"Swaps","href":"/appkit/nuxt/transactions/swaps"}]}]}]},{"dropdown":"React Native","icon":"mobile-screen-button","description":"AppKit on React Native","pages":[{"group":"Fundamentals","pages":[{"title":"Installation","href":"/appkit/react-native/core/installation"},{"title":"Options","href":"/appkit/react-native/core/options"},{"title":"Hooks","href":"/appkit/react-native/core/hooks"},{"title":"Components","href":"/appkit/react-native/core/components"},{"title":"Link Mode","href":"/appkit/react-native/core/link-mode"},{"title":"Theming","href":"/appkit/react-native/core/theming"},{"title":"Migrate to Multichain","href":"/appkit/react-native/core/migration-multichain"}]},{"group":"Features","pages":[{"group":"Authentication","pages":[{"title":"Email \u0026 Socials","href":"/appkit/react-native/core/email"},{"title":"One-Click Auth (SIWE)","sidebarTitle":"One-Click Auth (SIWE)","href":"/appkit/react-native/core/1ca"},{"title":"Sign In With X","sidebarTitle":"Multichain Authentication","href":"/appkit/react-native/core/siwx"}]},{"group":"Payments \u0026 Transactions","pages":[{"title":"Swaps","href":"/appkit/react-native/transactions/swaps"},{"title":"On-Ramp","href":"/appkit/react-native/transactions/onramp"}]}]}]},{"dropdown":"Flutter","icon":"flutter","description":"AppKit on Flutter","pages":[{"group":"Fundamentals","pages":[{"title":"Flutter","sidebarTitle":"Installation","href":"/appkit/flutter/core/installation"},{"title":"Usage","href":"/appkit/flutter/core/usage"},{"title":"Options","href":"/appkit/flutter/core/options"},{"title":"Link Mode","href":"/appkit/flutter/core/link-mode"},{"title":"Actions","href":"/appkit/flutter/core/actions"},{"title":"Events","href":"/appkit/flutter/core/events"},{"title":"Theming","href":"/appkit/flutter/core/theming"}]},{"group":"Features","pages":[{"group":"Authentication","pages":[{"title":"Email \u0026 Social Wallets","href":"/appkit/flutter/core/email"},{"title":"Sign In With Ethereum","sidebarTitle":"One-Click Auth (SIWE)","href":"/appkit/flutter/core/siwe"}]},{"group":"Payments \u0026 Transactions","pages":[{"group":"Fund wallets","pages":[{"title":"Deposit with Exchange - Flutter","sidebarTitle":"Exchange Wallets","href":"/appkit/flutter/payments/deposit-with-exchange"}]}]}]}]},{"dropdown":"Kotlin","icon":"android","description":"AppKit on Kotlin (Android)","pages":[{"group":"Fundamentals","pages":[{"title":"Kotlin","href":"/appkit/android/core/installation"},{"title":"Usage","href":"/appkit/android/core/usage"},{"title":"Options","href":"/appkit/android/core/options"},{"title":"Actions","href":"/appkit/android/core/actions"},{"title":"Components","href":"/appkit/android/core/components"},{"title":"Theming","href":"/appkit/android/core/theming"}]},{"group":"Features","pages":[{"group":"Authentication","pages":[{"title":"Sign In With Ethereum","sidebarTitle":"One-Click Auth (SIWE)","href":"/appkit/android/core/one-click-auth"}]}]}]},{"dropdown":"Swift","icon":"apple","description":"AppKit on Swift (iOS)","pages":[{"group":"Fundamentals","pages":[{"title":"Swift","href":"/appkit/ios/core/installation"},{"title":"Usage","href":"/appkit/ios/core/usage"},{"title":"Options","href":"/appkit/ios/core/options"},{"title":"Actions","href":"/appkit/ios/core/actions"}]},{"group":"Features","pages":[{"group":"Authentication","pages":[{"title":"One-Click Auth (SIWE)","href":"/appkit/ios/core/one-click-auth"}]}]}]},{"dropdown":"Unity","icon":"unity","description":"AppKit on Unity","pages":[{"group":"Fundamentals","pages":[{"title":"Unity","sidebarTitle":"Installation","href":"/appkit/unity/core/installation"},{"title":"Usage","href":"/appkit/unity/core/usage"},{"title":"Options","href":"/appkit/unity/core/options"},{"title":"Actions","href":"/appkit/unity/core/actions"},{"title":"Events","href":"/appkit/unity/core/events"},{"title":"Customization","href":"/appkit/unity/core/customization"}]},{"group":"Features","pages":[{"group":"Authentication","pages":[{"title":"Email \u0026 Social Wallets","href":"/appkit/unity/core/socials"},{"title":"Sign-In With Ethereum","sidebarTitle":"One-Click Auth (SIWE)","href":"/appkit/unity/core/siwe"}]}]}]}]},"basePath":"","title":"SIWX Implementation - Reown Docs","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":[],"chunks":[]}