Magic Link — web3 auth for Web2 users

It is an Another amazing tool which is definitely worth of sharing.

Magic Link — web3 auth for Web2 users

It is an Another amazing tool which is definitely worth of sharing.

It provides an easy and super smooth user experience in web3 platforms, 2 clicks and you are logged in. No seed phrases, passwords or wallet integrations.


Agenda:

  • intro,
  • what is it?
  • how it works?
  • conclusion.

“Magic links are a type of passwordless login that allow users to log into an account by clicking a link that’s emailed to them, rather than typing in their username and password.”

Flow is pretty simple, in simple words:

first auth generates a wallet, in email you receive a link which proceeds login via wallet and connects with platform even easier than in standard Web2 platforms.

The truth is that you do not own your private keys, so the wallet is not totally yours. However, UX is very impressive and can help to scale up amount of users, especially the ones who are not deep into wallet maintenance and just want to collect assets.


How it works?

According to docs:

“the app asks users for an email address, not a password. Then, the application generates a link with an embedded token and sends it via email. The user then opens the email, clicks the link, and is granted access to the given app or service.”
schema from: https://postmarkapp.com/blog/magic-links

Magic link is pretty similar to recovering password process, which totally depends on typing email address and receiving the link for resetting it. Instead of the reset, user receives auth token, what makes UX even better for Web2 users.

Configuration is pretty simple, few lines of code:

Piece of code from official docs: https://magic.link

Source:

The beginner's guide to magic links
Today, we type in account credentials to do nearly everything, from sending emails and transferring money to ordering…

Conclusion

If you want to scale your dapp, it is the perfect choice. Onboarding users who are not familiar with web3 solutions will be boosted.

However, the entire magic of decentralization is disappearing, in the auth process. The dilemma is about it pros and nature of blockchain.


Did you like it? There is an official repo from my challenge:

GitHub - Kacper-Hernacki/100-days-of-web3-challenge-blockchain-free-materials: This is the repo…
This is the repo which consists 100 topics about blockchain/ decentralisation/ web3. There are links to my articles,…