Created
August 23, 2019 19:54
-
-
Save pedrouid/3d82e758a842c455c3457b14bf1ec414 to your computer and use it in GitHub Desktop.
Auth with 3box
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Authenticate store owner | |
const box = Box.openBox(ethAddress, window.ethereum) | |
// App specific space for store owner | |
const space = await box.openSpace('pos_bufficorn') | |
// Add data/items | |
await space.public.set('store_settings', JSON.stringify({ name:'Bufficorn Cafe', description: 'Locally Roasted Coffee in Denver'})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment