1.0.17 • Published 8 months ago

@open-social-protocol/osp-client v1.0.17

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
8 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.

1.0.2

1 year ago

1.0.1

1 year ago

1.0.17

8 months ago

1.0.0

1 year ago

1.0.16

8 months ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.1.1

11 months ago

0.4.20

1 year ago

1.1.0

11 months ago

1.1.5

10 months ago

1.1.4

11 months ago

1.1.3

11 months ago

1.1.2

11 months ago

0.4.19

1 year ago

0.4.17

1 year ago

0.4.18

1 year ago

0.4.15

1 year ago

0.4.16

1 year ago

0.4.14

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.15

8 months ago

1.0.14

11 months ago

1.0.13

11 months ago

1.0.12

1 year ago

0.4.10

1 year ago

0.4.9

1 year ago

0.4.8

1 year ago

0.4.7

1 year ago

0.4.5

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.2.32

1 year ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.24

2 years ago

0.1.8

2 years ago

0.2.15

2 years ago

0.1.9

2 years ago

0.0.5

2 years ago

0.2.20

2 years ago

0.0.6

2 years ago

0.0.0

2 years ago