Skip to content

thebadking/NextJS-Metamask-python-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sign-In with Ethereum Authentication

This repository offers a sample implementation for Sign-In with Ethereum, based on the EIP-4361 standard. This form of off-chain authentication allows users to control their digital identity with their Ethereum account and ENS profile, offering a secure alternative to traditional forms of authentication.

Overview

The project utilizes SIWE (Sign-In with Ethereum) packages to implement this form of authentication. The front-end is built using Next.js and uses the SIWE package. The backend is Dockerized and implemented using FastAPI and siwe-py.

Note: This project is a work-in-progress and state management is not yet optimized for production. The state may be reset if the container is killed.

Features

  • Off-chain authentication based on ERC-4361 standard
  • Backend implemented in FastAPI with siwe-py
  • Front-end developed using Next.js
  • Session management with nonce-based challenge

Documentation

For more information on SIWE and its features, consult the official SIWE documentation.

Quick Start

FE: npm i && npm dev BE: ./rebuild.sh

Acknowledgements

Special thanks to:

License

http://www.apache.org/licenses/LICENSE-2.0