0.0.3 • Published 11 months ago
@aqua.xyz/login-sdk v0.0.3
@aqua.xyz/login-sdk
A typescript library using AQUA Login. Provides login utilities, wallet inventory and user profile details.
Installation
Using yarn
# Using yarn
$ yarn add @aqua.xyz/login-sdk
# Using npm
$ npm install @aqua.xyz/login-sdk
Example usage
import { AquaLoginSDK } from "@aqua.xyz/login-sdk";
How to use
const aquaIdentity = new AquaLoginSDK();
const login = async () => {
await aquaIdentity.login({ isLandscape: true });
};
const logout = async () => {
await aquaIdentity.logout();
};
const getWalletAddress = async () => {
await aquaIdentity.getWalletAddress();
};
aquaIdentity.onLoginSucceeded(EVENTS.AQUA_IDENTITY_SUCCESSFULLY_LOG_IN, (event) => {
console.log("AQUA_IDENTITY_SUCCESSFULLY_LOG_IN", event.data);
});