AIR Kit
AIR Kit (1.1.x)
AIR Kit (1.1.x)
  • Introduction
    • Welcome!
    • Quickstart
  • Web SDK
    • Installation
    • Usage
    • Customization
    • Reference
    • Wagmi Connector
    • Release Notes
  • Flutter SDK
    • Installation
    • Usage
    • Reference
  • About
    • Moca Network
Powered by GitBook
On this page
  1. Introduction

Quickstart

To get started following the steps below:

Installation

npm install path/to/mocanetwork-airkit-0.5.0.tgz

Initialize & Login

import { AirService, EMBED_BUILD_ENV } from "@mocanetwork/airkit";

const service = new AirService({
 partnerId: YOUR_PARTNER_ID,
});
await service.init();
await service.login(options: { authToken });

The AirService creates an iframe that loads the login flow and sets up communication streams between the iframe and your DApp's javascript context.

PreviousWelcome!NextInstallation