Register with Username
This method allows you to register a new account for your Xellar Embedded wallet using the user's username and password.
Parameters
username
(string, required): User's chosen username.password
(string, required): User's password.
Returns
An AuthSuccessResponse
object.
The response will include an accessToken
.
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Example Usage
const username = "user123";
const password = "securePassword";
const response = await sdk.auth.username.register(username, password);