Skip to content

Commit 1ff5f70

Browse files
authored
Document Flow Execution Boundary for authentication
Add section on Flow Execution Boundary to clarify authentication flow behavior.
1 parent b54f7e3 commit 1ff5f70

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/content/fundamentals/request-lifecycle.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,16 @@ HTTP Request
141141

142142
<br>
143143

144+
## 🔐 Flow Execution Boundary
145+
Authentication flows are only executed for endpoints explicitly marked with flow metadata.
146+
147+
- Regular requests do not create an AuthFlowContext
148+
- AuthFlowContext is only created during flow execution
149+
150+
👉 This ensures that authentication logic does not interfere with normal application behavior.
151+
152+
<br>
153+
144154
## 🧠 Mental Model
145155
👉 Middleware prepares the request
146156
👉 Flows change the state

0 commit comments

Comments
 (0)