DEV Community

Yonz for AllSpark

Posted on

RN Web3 Auth

In keeping with our vision for user-owned authentication, we expended a lot of effort to get wallet based login to work -- a hefty feat in mobile.

AllSpark uses Web3Auth to create a public private key pair. The newly created / already existing wallet is associated with your preferred social login account. The sensitive application data is then encrypted in-device with a key derived from your wallet.

In the near future the wallet login will allow us to do a few exciting things:

  1. Direct blockchain rewards to your account.
  2. Wallet phrase based login
  3. Wallet connect integration once we have replacement protocols for eth_getEncryptionPublicKey
  4. Wallet connect APIs for generating a similar flow.

Since an application is in an untrusted space, it creates a challenge for correctly setting up any form of authentication gates. In AllSpark the idea is that authentication is just the capability to decrypt the database (have access to decryption key from touchId or provision device with Web3Auth private key.

Web3Auth provided a working solution after attempting and failing with a few different providers. The focus for dapps seems to create a selection bias for browser based login.
1) Rownd.com
2) Magic.link
3) Moralis
4) stych

In a follow up post we will discuss our future plans and a more detailed write up with the issues encountered with these providers.

Best,
-Yonz

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay