AIR Kit
AIR Kit (1.2.x)
AIR Kit (1.2.x)
  • Introduction
    • Welcome!
    • Quickstart
  • About
    • Moca Network
  • Account SDK
    • Installation
    • Usage
    • Customization
    • Reference
    • Wagmi Connector
    • Release Notes
  • Flutter SDK
    • Installation
    • Usage
    • Reference
  • AIR CREDENTIALS
    • Introduction
    • Architecture & Core Technologies
    • Core Technologies and Key Components
      • Issuing Credentials
      • Issuer SDK
      • Verifiable Credentials
      • Verifier SDK
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!NextMoca Network