This guide explains how to implement Abstraxion authentication without using the legacy modal UI, giving you complete control over the user experience during the authentication flow.
Overview
Starting with version @burnt-labs/[email protected] and later, you can implement a custom UI for the Abstraxion authentication process. This allows you to:
Display your own loading states and branding during authentication
Create a seamless authentication experience that matches your app's design
Handle the redirect flow programmatically
Key Changes
1. No Legacy Modal UI Import Required
The Abstraxion CSS import is no longer needed when using custom UI authentication:
- import "@burnt-labs/abstraxion/dist/index.css";
2. Direct Login Method
The useAbstraxionAccount hook now provides a login method that handles authentication without showing the legacy modal:
// Old Loading component with built-in text
- <h1>Connecting...</h1>
- <h2>Signing you in... Don't close the window.</h2>
// New simplified Loading component
+ <Spinner />