Skip to content

Commit 87cf34e

Browse files
committed
added clarifications
1 parent be1acc3 commit 87cf34e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.changeset/six-ears-wash.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ For large payloads, we:
2121

2222
## New Handshake Flow (for payloads >2KB)
2323
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)
2727
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
2929

3030
## Traditional Flow (for payloads ≤2KB)
3131
No changes. Continues to work as before with direct payload delivery in cookies for optimal performance.

0 commit comments

Comments
 (0)