Configure Connect Only Mode
Setup
By default, the SDK will authenticate all users which means users will need to sign when logging in. This page describes how you can remove the authentication step and allow users to just connect their wallets to log into your site.
Usage
initialAuthenticationMode (optional)
If you want to skip signing a message and just connect, then set the
initialAuthenticationMode
to connect-only
.
enableVisitTrackingOnConnectOnly (optional)
If you are using the connect-only
mode, then you also have the option to
disable visitor tracking by setting enableVisitTrackingOnConnectOnly
to false.
If you set this to false
then we will not track visitors. Note that you will
not be able to see visitor information in our visitors table or analytics page.
useIsLoggedIn
The useIsLoggedIn hook determines whether a user is logged in or not by returning a boolean value you can use to determine if the user has connected their wallets. The hook needs to be initialized within a child of DynamicContextProvider.
User Management & Analytics
Any user who connect, but does not authenticate, will appear in your dashboard
as a Visitor
. You’ll be able to see them in your
user management table or in
analytics under as Visitors
.
Was this page helpful?