You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes TOOL-2863
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on simplifying the OTP login process in the `InAppWallet` by removing the `canRetry` variable and related conditional logic, providing a more straightforward approach for handling OTP submissions.
### Detailed summary
- Removed the `canRetry` variable from the `LoginWithOtp` method calls.
- Simplified the OTP login logic by eliminating the retry checks.
- Added comments to indicate where to implement error handling and retries if needed.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
varaddress=awaitwallet.LoginWithOtp("userEnteredOTP");// try catch and retry if needed
50
50
51
51
// Socials (OAuth)
52
52
varaddress=awaitwallet.LoginWithOauth(
@@ -121,12 +121,8 @@ await wallet.SendOTP();
121
121
**Submit OTP:** Once the user receives the OTP, they submit it back to the application, which then calls LoginWithOtp on the InAppWallet instance to verify the OTP and complete the login process.
122
122
123
123
```csharp
124
-
var (address, canRetry) =awaitwallet.LoginWithOtp("userEnteredOTP");
0 commit comments