1.0.14 • Published 6 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
6 months ago
1.0.13
6 months ago
1.0.12
6 months ago
1.1.4
7 months ago
1.1.3
8 months ago
1.1.2
8 months ago
1.1.1
8 months ago
1.0.11
9 months ago
1.1.0
9 months ago
1.0.10
10 months ago
1.0.9
10 months ago
1.0.8
10 months ago
1.0.7
10 months ago
1.0.6
10 months ago
1.0.5
10 months ago
1.0.4
11 months ago
1.0.3
11 months ago
1.0.2
11 months ago
1.0.1
11 months ago
1.0.0
11 months ago