Reown Authentication SIWX Usage
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.
Installation
Usage
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.
Available Parameters
Examples
Custom storage keys:
Optional authentication (wallet stays connected if user denies signing):
Interacting with Reown Authentication
AppKit provides a useAppKitSIWX composable that allows you to grab and interact with Reown Authentication.
Interactions
getSessionAccount
You can retrieve the session account data using the getSessionAccount method:
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:
You may use the session metadata through the getSessionAccount method:
events
Reown Authentication provides events that you can listen to for session management and authentication state changes: