Skip to content

Commit 27f2354

Browse files
authored
Improve clarity on authentication mode usage
Clarified usage recommendations for authentication modes.
1 parent d6785d1 commit 27f2354

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/content/client/authentication.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var result = await UAuthClient.Flows.TryLoginAsync(
5454
| TryAndCommit | Validate then login if success |
5555

5656
👉 Use `DirectCommit` when:
57-
- You need maximum performance with sacrifice interactive SPA capabilities.
57+
- You need maximum performance while sacrificing interactive SPA capabilities.
5858

5959
👉 Use `TryOnly` when:
6060

@@ -64,7 +64,14 @@ var result = await UAuthClient.Flows.TryLoginAsync(
6464
👉 Use `TryAndCommit` when:
6565

6666
- You need completely interactive SPA experience.
67-
- UltimateAuth suggests to use TryAndCommit.
67+
68+
👉 `TryAndCommit` is the recommended mode for most applications.
69+
70+
It provides:
71+
72+
- Validation feedback
73+
- Automatic redirect on success
74+
- Smooth SPA experience
6875

6976
<br>
7077

0 commit comments

Comments
 (0)