Skip to content

Commit 8035923

Browse files
committed
.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 -->
1 parent c0778cb commit 8035923

File tree

1 file changed

+2
-6
lines changed
  • apps/portal/src/app/dotnet/wallets/providers/ecosystem-wallet

1 file changed

+2
-6
lines changed

apps/portal/src/app/dotnet/wallets/providers/ecosystem-wallet/page.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,8 @@ await wallet.SendOTP();
131131
**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.
132132

133133
```csharp
134-
var (address, canRetry) = await wallet.LoginWithOtp("userEnteredOTP");
135-
if (address != null) {
136-
// Login successful
137-
} else if (canRetry) {
138-
// Ask user to retry entering OTP
139-
}
134+
var address = await wallet.LoginWithOtp("userEnteredOTP");
135+
// If this fails, feel free to catch and take in another OTP and retry the login process
140136
```
141137

142138
## Example

0 commit comments

Comments
 (0)