0.4.10 • Published 10 months ago

@open-social-protocol/osp-client v0.4.10

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
10 months ago

@open-social-protocol/osp-client

osp-client-js is a osp clent js sdk.

Installation

Use the package manager pnpm or npm to install osp-client-js.

pnpm add @open-social-protocol/osp-client

or

npm i @open-social-protocol/osp-client

Usage

import { OspClient, Environment } from "@open-social-protocol/osp-client";
import { ethers } from "ethers";

const env: Environment = Environment.dev;

const client = await OspClient.create({
  env,
  storage: localStorage,
  app_id: "<APP_ID>",
  guest_id_marketing: "<GUEST_ID_MARKETING>",
});

const provider = new ethers.providers.Web3Provider(window.ethereum);
await provider.send("eth_requestAccounts", []);

await client.authentication.login(provider.getSigner());

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

0.4.10

10 months ago

0.4.9

10 months ago

0.4.8

10 months ago

0.4.7

10 months ago

0.4.5

11 months ago

0.3.2

11 months ago

0.3.1

11 months ago

0.2.32

12 months ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.24

1 year ago

0.1.8

1 year ago

0.2.15

1 year ago

0.1.9

1 year ago

0.0.5

1 year ago

0.2.20

1 year ago

0.0.6

1 year ago

0.0.0

1 year ago