You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using RainbowKitSiweNextAuthProvider doesn't provide the authentication status out of the box. While using useSession from next-auth/react will do the job, I'm curious if there is any intention to create a hook for @rainbow-me/rainbowkit-siwe-next-auth that exposes similar functionality to useAccount from wagmi in that you can invoke callbacks onConnect, onDisconnect, and potentially onAuthenticated.
This seems particularly useful in the event that that developers would like to invoke some methods of reporting during the connection process.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
Using
RainbowKitSiweNextAuthProvider
doesn't provide the authentication status out of the box. While usinguseSession
fromnext-auth/react
will do the job, I'm curious if there is any intention to create a hook for@rainbow-me/rainbowkit-siwe-next-auth
that exposes similar functionality touseAccount
from wagmi in that you can invoke callbacksonConnect
,onDisconnect
, and potentiallyonAuthenticated
.This seems particularly useful in the event that that developers would like to invoke some methods of reporting during the connection process.
Proof of concept
Coming soon
Beta Was this translation helpful? Give feedback.
All reactions