.net 2.1 docs hotfix (#4569)
<!-- start pr-codex -->
## PR-Codex overview
This PR simplifies the OTP login process in the `page.mdx` file by removing the retry logic and adding a comment for handling failed login attempts.
### Detailed summary
- Removed `canRetry` variable and related logic
- Added a comment for handling failed login attempts
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
This commit is contained in:
@@ -131,12 +131,8 @@ await wallet.SendOTP();
|
||||
**Submit OTP:** Once the user receives the OTP, they submit it back to the application, which then calls LoginWithOtp on the EcosystemWallet instance to verify the OTP and complete the login process.
|
||||
|
||||
```csharp
|
||||
var (address, canRetry) = await wallet.LoginWithOtp("userEnteredOTP");
|
||||
if (address != null) {
|
||||
// Login successful
|
||||
} else if (canRetry) {
|
||||
// Ask user to retry entering OTP
|
||||
}
|
||||
var address = await wallet.LoginWithOtp("userEnteredOTP");
|
||||
// If this fails, feel free to catch and take in another OTP and retry the login process
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
Reference in New Issue
Block a user