Skip to content

Add handshake animation to HCW #2191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/how-clerk-works/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ However, server-rendered applications present a unique challenge. Server-to-serv
1. FAPI receives the request with the `__client` cookie
1. FAPI validates the authentication state and issues a new session token

<Video src="/docs/images/how-clerk-works/handshake.mp4" width="1920" height="1080" autoPlay muted loop playsInline />

This server -> browser -> FAPI request includes the client token, so FAPI is able to verify the user's auth state and issue a new session token securely. This handshake ensures secure token renewal while maintaining the benefits of server-side rendering.

> [!QUIZ]
Expand Down
Binary file added public/images/how-clerk-works/handshake.mp4
Binary file not shown.