Coder Social home page Coder Social logo

siwe-notepad's Introduction

Sign-In with Ethereum Notepad Example

Example usage of the Sign-In with Ethereum (SIWE) library.

Sign-In with Ethereum Notepad

Quickstart

If you would like to use WalletConnect with this example, you must first obtain a Project ID and update projectId in src/providers.ts.

From this directory, run the following in your terminal:

yarn
yarn dev

Try the example

Open your browser at http://localhost:4361 and have fun!

Select one of the providers available (Metamask, WalletConnect) to begin a SIWE-based session. Write anything you want and hit the "Save" button (you can also use Cmd+s/Ctrl+s to save). You can refresh the page or close your tab - just don't delete your session cookie and your text will continue to be there until you decide to delete the folder /db, where sessions are stored.

Note on port selection

At the top of the src/index.ts file there is a variable that is the default port used. If you want to use the provided Infura ID, select one of the following ports: 3000,3010,4000,4010,4361,9080. Otherwise you'll be unable to connect to Infura.

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.