Custom authentication
Connect to your own authentication back-end
First create an authentication adapter. This allows KlayKit to create/prepare messages and communicate with your back-end.
As an example, we could make an authentication adapter that lets us use Sign-In with Ethereum against some custom API endpoints.
Assuming your application is already managing the authentication lifecycle in some way, you can pass the current authentication status along with your custom adapter to RainbowKitAuthenticationProvider
, wrapping your existing RainbowKitProvider
.