Giter VIP home page Giter VIP logo

genezio's Introduction

Genezio Web3 Wallet Authentication Example

This repository demonstrates the integration of Genezio with Web3 wallet authentication to secure access to your application's functionalities.

Run

  1. Install genezio.
npm install genezio -g
  1. Deploy the project. If you are not logged in, you will be redirected to login or register with a genezio account.
genezio deploy
  1. Go to your project on the genezio dashboard and active the Authentication for your project from the "Authentication" section.
  2. Activate the Web 3 Auth provider and after that copy the Token and Region values. Paste them in client/src/App.tsx:
// Add your own values here
AuthService.getInstance().setTokenAndRegion("<token>", "<region>");
  1. Deploy again the client
genezio deploy --frontend

How does it work?

A Web3 wallet login system allows users to securely authenticate with your platform using their digital wallets. This process utilizes blockchain technology, offering a decentralized and secure method of verification without sharing personal information. This method leverages public-key cryptography, eliminating the need for traditional username and password combinations.

What is the flow?

  1. Connect Wallet: User clicks "Login with Metamask" and approves the connection in their wallet.
  2. Sign Message: The platform sends a unique message, which the user signs with their private key via their wallet.
  3. Verify Signature: The platform verifies the signature using the user's public key to authenticate identity.
  4. Establish Session: Upon verification, the platform starts a session, granting access to the user.

genezio's People

Contributors

samuelandert avatar

Stargazers

Andreia Ocănoaia avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.