BluxBlux

Login

Authenticate users in your Stellar dApp with Blux's built-in login flow.

The blux.login() method opens the Blux authentication modal, giving users a seamless way to connect with email, phone, social accounts, passkeys, or an existing wallet.

Login modal

Usage

import { blux } from "@bluxcc/core";

blux.login();

// blux.logout();

console.log(blux.user);
console.log(blux.isReady);
console.log(blux.isAuthenticated);

Keep your Connect button disabled until blux.isReady is true. This ensures all wallets have reported availability before the modal opens.

On this page