# web3 auth

By [taihucao](https://paragraph.com/@taihucao) · 2023-08-07

---

Web2 Authorization
------------------

![OAuth](https://storage.googleapis.com/papyrus_images/8f135815d2e2393023bd62bd5bda4e2034fb8280c6c800e95aa41fadc3a82983.png)

OAuth

### Credentials

User name/ Email/ Phone Number/ etc.

Password

### Disadvantages

Too many platforms & credentials

Credential leakage

Authorization with Web3 wallet
------------------------------

introduce web3 to web2

### Login

![Login with Metamask](https://storage.googleapis.com/papyrus_images/1236ddd4b14eaa06f8e7da9f46824784b446c7429a59931314f022dfe6d5d469.png)

Login with Metamask

### Connect only

### Credentials

Public Key/ Private Key

### Advantage

One credential for all platforms

Secure

### Disadvantage

Difficulty for the establish of web3 wallet

web3auth
--------

make users use web3 as web2 applications

![web3auth auth](https://storage.googleapis.com/papyrus_images/a35c9f13a7fdc17131516cff8d4955bde67756fc529cd63f24d3a0c2364d6274.png)

web3auth auth

### Credentials

User name/ Email/ Phone Number/ etc.Password

### Advantages

One credential for all platforms

Easy to start with web2 features

### Disadvantages

Centralized

### Reference:

[https://www.toptal.com/ethereum/one-click-login-flows-a-metamask-tutorial](https://www.toptal.com/ethereum/one-click-login-flows-a-metamask-tutorial)

[https://web3auth.io/docs/how-web3auth-works](https://web3auth.io/docs/how-web3auth-works)

---

*Originally published on [taihucao](https://paragraph.com/@taihucao/web3-auth)*
