near / fast-auth-signer

https://fast-auth-signer.vercel.app
MIT License
29 stars 8 forks source link

Atomic account creation #150

Open Pessina opened 6 months ago

Pessina commented 6 months ago

The current process involves creating a Firebase account first and then creating an On-Chain account. However, this process is not atomic, meaning that it's possible for the Firebase account to be created successfully while the On-Chain account creation fails. This can lead to a situation where you have a Firebase account but no corresponding On-Chain account.

For example:

The goal of this task is to ensure that either both the Firebase and On-Chain accounts are created successfully, or if one fails, neither account is created. This all-or-nothing approach is to maintain consistency and avoid partial completion of the account creation process.