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 Firebase account is created.
The attempt to claim the OIDC token fails.
As a result, the On-Chain account is not created.
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.
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.