Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JohnRising/example-login-erc4337
https://github.com/JohnRising/example-login-erc4337
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/JohnRising/example-login-erc4337
- Owner: JohnRising
- Created: 2023-01-12T07:15:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-12T07:51:13.000Z (almost 2 years ago)
- Last Synced: 2024-07-31T23:46:05.468Z (3 months ago)
- Language: JavaScript
- Size: 338 KB
- Stars: 11
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-erc-4337 - Google authentication + ERC-4337 demo
README
# Google authentication + ERC-4337 demo
This is a rudimentary demo of using social logins to create ERC-4337 addresses.
Use at your own risk. This was created for educational purposes only and is not fit for a production environment.
There are two directories: a client and a server. The client contains a react front end that lets user authenticate with google and generates an ERC-4337 address. The server stores user email addresses and ERC-4337 contract addresses.
The server and client must be started separately.
## Start the server
```
cd server
npm install
npm start dev
```## Start the client
First, navigate to the client directory.
```
cd client
```Then change the `src/config.json` file to include the location of an ERC-4337 bundler and node RPC. You can get an ERC-4337 bundler for free at https://app.stackup.sh/.
You may also need to change the `data-client_id` in the `g_id_onload` div in `App.tsx`. You can get one from Google.
```
npm install
npm run start
```