@hamsterbox/sdk
v0.0.8
Published
[Cavies Lab](https://cavies.xyz/) HamsterBox Library.
Downloads
22
Readme
Description
Cavies Lab HamsterBox Library.
Installation
$ yarn add @hamsterbox/sdk
Documentation
Examples
Usages
There is three main flow usage of SDK
- Login flow
import {
init,
closeModal,
openModal,
Adapters,
Providers,
Router
} from "@hamsterbox/sdk"
await init({
networkType:
Providers.NetworkType.testnet ||
Providers.NetworkType.mainnet,
audience: "http://localhost:3000",
disableCloseButton: true,
disableCloseButton: false,
cleanWalletCache: true,
onClose: () => {
// do somthing
},
onAuth: (payload) => {
console.log({ payload });
},
onConnected: (payload) => {
console.log({payload});
},
}).then(() => {
openModal();
});
Notes
This library is still in beta development. Significant changes may happen anytime.
Contact
If you have any inquiries please send emails to [email protected].
License
Copyright (c) 2022 CaviesLabs.
Licensed under the GPL-3.0