{"_id":"@ceno-core/two","_rev":"1-04190ea7a31eea560db05348e062934f","name":"@ceno-core/two","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@ceno-core/two","version":"0.1.1","description":"ceno Client NPM Package","main":"./dist/onec-sdk.bundle.js","exports":{".":"./dist/onec-sdk.bundle.js","./client":"./src/client/onec-client.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"webpack --mode=development","build:prod":"webpack --mode=production","prepublishOnly":"webpack --mode=production"},"authors":[{"name":"Aman Mishra","email":"aman.onec@gmail.com","homepage":"https://github.com/Am-Coder"},{"name":"Ujjwal Kumar","email":"ujjwal.onec@gmail.com","homepage":"https://github.com/Ujjwal0501"}],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/onecdotin/onec-sdk.git"},"keywords":["onec","web3","npm","metamask","walletconnect"],"publishConfig":{"access":"public"},"dependencies":{"@walletconnect/client":"^1.7.1","@metamask/onboarding":"^1.0.1","@walletconnect/qrcode-modal":"^1.7.1","axios":"^0.21.1"},"devDependencies":{"@babel/core":"^7.16.12","@babel/preset-env":"^7.16.11","babel-loader":"^8.2.3","webpack":"^5.67.0","webpack-cli":"^4.9.2"},"gitHead":"992b288e0ec41642547f22ba44b3ffaebaad3d24","bugs":{"url":"https://github.com/onecdotin/onec-sdk/issues"},"homepage":"https://github.com/onecdotin/onec-sdk#readme","_id":"@ceno-core/two@0.1.1","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-EqwYVPyImGdF0aLNwGkipJLAuy6uOT9MIBRcnjaBAaKACK50Exl6ep6AEPk/R7kUq1TIYcon9N/dNVZNuq35pQ==","shasum":"a8a573443ea5a47f9d8ccdc6e17d25a211e613ca","tarball":"https://registry.npmjs.org/@ceno-core/two/-/two-0.1.1.tgz","fileCount":10,"unpackedSize":271803,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiLahKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBeg//YouYjZeVHFU5gawHlbaZDnbz1cddVDftmzuuDUqpE4o2RVrj\r\nSDVraLPoxfa2qMR6E3tBNQTakSlXv3xkus2ZODBqcaISYZzgweC+iR87htg0\r\nImSqOy7i8yjgYvr/beu8GW2ABfjsX46xJJz5ydmNRFwQeJORB+Fw1gowRvrz\r\nxYE56ihSV4+ty8YIihGETSCOco+eCU0uUtJazxxC0UHZB+Nm674EifbXWuWW\r\nM0CbtSaLw0780VVyNTs+L2HjgIUsETbsFqScuO4nzGuxDmy5tuSMbmIGgfTe\r\nM4kevv+i9rS7qKaFlA+yVqGtYmvWUSljMLtfSVLrjN9OtXjzMQiN/U5KY31d\r\n7wMLpFENY/S0czTtbB04SywmE0Vth5h06aYMf1mhgMUpmfbOUGswhPdJxeeT\r\nyQo2XFqhJP7Ze+7dPQnPzDkHHSDufMIzFPpnK9KEOKflVfIyKCvPKat0ie9U\r\n3NwyfhhYGqVcOjEpYtE12v8Jj10t5lXnwenvv8QJ7cqjXfgKeCn+yvqfmltb\r\n4jIQFzvs41nNhM9lbsVeGo73cjrHa+V99bckLLw7VmbBuJV6YR/OMubN/B4N\r\nHs+Ow8s7/rE96gv1Ynw7GNFsaGEU1GAUtm1PzQ4eZIJ7+PwBEk97SYc27DE9\r\nfhZ6iEXm76E2WDSiKTneMaumaxWoSJM11zk=\r\n=xKHa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmcNEcYX54lxi8mQLCTvgU43oLqgBjz0aQf1FwB/sbsQIgcGbSKmZ1htOACka1VrlYWMLnel+4oTnkWiFuiwWYOGw="}]},"_npmUser":{"name":"aman.onec","email":"aman.onec@gmail.com"},"directories":{},"maintainers":[{"name":"aman.onec","email":"aman.onec@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/two_0.1.1_1647159370456_0.042994551465438846"},"_hasShrinkwrap":false}},"time":{"created":"2022-03-13T08:16:10.382Z","0.1.1":"2022-03-13T08:16:10.677Z","modified":"2022-04-04T22:19:11.674Z"},"maintainers":[{"name":"aman.onec","email":"aman.onec@gmail.com"}],"description":"ceno Client NPM Package","homepage":"https://github.com/onecdotin/onec-sdk#readme","keywords":["onec","web3","npm","metamask","walletconnect"],"repository":{"type":"git","url":"git+https://github.com/onecdotin/onec-sdk.git"},"bugs":{"url":"https://github.com/onecdotin/onec-sdk/issues"},"license":"MIT","readme":"# Onec-SDK\n\n### v0.1\nThe 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.\nNot 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`.\n\n## Getting Started:\nInstall Onec-SDK from npm\n\n    npm i onec-sdk\n\nImport in your client application code\n\n     import Onec from \"onec-sdk\";\n\nAuthentication via metamask\n\n    Onec.auth.withMetamask().then((response) => {console.log(response)}).catch((error) => {console.log(error)});\n\nAuthentication via WalletConnect\n\n    Onec.auth.withWalletConnect().then((response) => {console.log(response)}).catch((error) => {console.log(error)});\n\n\n## Demystifying Response Object\n\nAuthentication 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.\n\n** User should sign the login message within 60 seconds otherwise the process will expire.\n\n\n\n## Next Release Features Announcement:\n\n - Improvements in `auth` object like mechanisms for interacting/updating the User object.\n - A new `naas` class which is a rest-client to connect the web apps with Onec's NaaS Suite.\n\n\n","readmeFilename":"README.md"}