You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 23, 2022. It is now read-only.
Verifies postMessage(origin) from Webaverse app and return data as per request.
Creates Weba-wallet table inside dynamoDB.
Contains three routes:
/validate (validates user's token & password, if verifies return login message, data and temp token,
If a new user? registers in dynamoDB and return with temp token)
/save-data (validates user's temp token, to store new key-value data against user)
/get-key (validates user's temp token, and return respective key-value data)
New temp token will be returned on login/ or on registration.
On login, a popup will be opened, along with the postMessage carrying the user's address(token). The user will enter a password. And depending on the password, one of these three responses is expected either 1) it will throw an error on the wrong password, 2) create a new user, or 3) validate the password and return the user's data.
If a user is already logged in and has an address and a temp token. The app will request a wallet to get key-value data.
If an app wants to save data into a wallet there is a function called sendDataToWallet(). Call this fn with a parameter of key-value pair and data will be stored in the wallet.