0.7.9 • Published 2 years ago

ceno-sdk v0.7.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Onec-SDK

v0.1

The highlight of the release is Onec.auth. It saves all the hassle to incorporate web 3.0 based wallet authentication with just a few lines of code. Not only that Onec SDK integrates the Onec User model into the application, thus you can save the hassle of maintaining user-DB. We can proudly say it as web3 version of Google's Firebase Auth.

Getting Started:

Install Onec-SDK from npm

npm i onec-sdk

Import in your client application code

 import Onec from "onec-sdk";

Authentication via metamask

Onec.auth.withMetamask().then((response) => {console.log(response)}).catch((error) => {console.log(error)});

Authentication via WalletConnect

Onec.auth.withWalletConnect().then((response) => {console.log(response)}).catch((error) => {console.log(error)});

Demystifying Response Object

Authentication functions return a promise which resolves to a User object or rejects with an error. The User Object has attributes like public address, username, email, createdAt, updatedAt, etc.

** User should sign the login message within 60 seconds otherwise the process will expire.

Next Release Features Announcement:

  • Improvements in auth object like mechanisms for interacting/updating the User object.
  • A new naas class which is a rest-client to connect the web apps with Onec's NaaS Suite.
0.6.7

2 years ago

0.6.6

2 years ago

0.6.9

2 years ago

0.6.8

2 years ago

0.7.2

2 years ago

0.7.1

2 years ago

0.7.4

2 years ago

0.7.3

2 years ago

0.7.0

2 years ago

0.7.9

2 years ago

0.7.6

2 years ago

0.7.5

2 years ago

0.7.8

2 years ago

0.7.7

2 years ago

0.6.3

2 years ago

0.6.5

2 years ago

0.6.4

2 years ago

0.6.2

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.9

2 years ago

0.5.8

2 years ago

0.5.7

2 years ago

0.5.6

2 years ago

0.5.5

2 years ago

0.5.4

2 years ago

0.5.3

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.9

2 years ago

0.4.8

2 years ago

0.4.7

2 years ago

0.4.6

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.3.9

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago