Skip to content
This repository was archived by the owner on Apr 23, 2022. It is now read-only.
This repository was archived by the owner on Apr 23, 2022. It is now read-only.

Weba-Wallet (Login + Storage module for Webaverse App) #2

@mujabmuneeb

Description

@mujabmuneeb

Verifies postMessage(origin) from Webaverse app and return data as per request.

Creates Weba-wallet table inside dynamoDB.
Contains three routes:

  1. /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)
  2. /save-data (validates user's temp token, to store new key-value data against user)
  3. /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 Webaverse App: (Ref: webaverse/app#1762)

  1. 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.
  2. 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.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions