File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ For large payloads, we:
21
21
22
22
## New Handshake Flow (for payloads >2KB)
23
23
1 . User visits ` example.com `
24
- 2 . Trigger handshake → ` 307 /v1/client/handshake `
25
- 3 . Handshake resolves → ` 307 example.com ` with ` __clerk_handshake_nonce ` cookie containing the nonce
26
- 4 . Client makes ` GET BAPI/v1/clients/handshake_payload?nonce=<nonce_value> ` request
24
+ 2 . Client app middleware triggers handshake → ` 307 FAPI /v1/client/handshake `
25
+ 3 . FAPI handshake resolves → ` 307 example.com ` with ` __clerk_handshake_nonce ` cookie containing the nonce
26
+ 4 . Client app middleware makes ` GET BAPI/v1/clients/handshake_payload?nonce=<nonce_value> ` request (BAPI)
27
27
5 . BAPI returns array of set-cookie header values
28
- 6 . Headers are applied to the response
28
+ 6 . Client app middleware applies headers to the response
29
29
30
30
## Traditional Flow (for payloads ≤2KB)
31
31
No changes. Continues to work as before with direct payload delivery in cookies for optimal performance.
You can’t perform that action at this time.
0 commit comments