1.0.14 • Published 5 months ago
@open-social-protocol/osp-client-core v1.0.14
@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-clientor
npm i @open-social-protocol/osp-clientUsage
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.14
5 months ago
1.0.13
5 months ago
1.0.12
5 months ago
1.1.4
6 months ago
1.1.3
7 months ago
1.1.2
7 months ago
1.1.1
7 months ago
1.0.11
8 months ago
1.1.0
8 months ago
1.0.10
9 months ago
1.0.9
9 months ago
1.0.8
9 months ago
1.0.7
9 months ago
1.0.6
9 months ago
1.0.5
10 months ago
1.0.4
10 months ago
1.0.3
10 months ago
1.0.2
11 months ago
1.0.1
11 months ago
1.0.0
11 months ago