Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
This was referenced Oct 20, 2026
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
dowski
force-pushed
the
dowski/auth-state-client
branch
from
October 20, 2026 15:33
70f33a2 to
d52bd1d
Compare
dowski
force-pushed
the
dowski/auth-state-server
branch
from
October 20, 2026 15:33
c251843 to
b9adb4c
Compare
dowski
force-pushed
the
dowski/auth-state-client
branch
from
October 20, 2026 15:46
d52bd1d to
30431c3
Compare
dowski
force-pushed
the
dowski/auth-state-server
branch
from
October 20, 2026 15:46
b9adb4c to
584af24
Compare
dowski
force-pushed
the
dowski/auth-state-client
branch
from
October 20, 2026 16:19
30431c3 to
47e27c2
Compare
dowski
force-pushed
the
dowski/auth-state-server
branch
from
October 20, 2026 16:19
584af24 to
caf47c7
Compare
dowski
force-pushed
the
dowski/auth-state-client
branch
from
October 21, 2026 14:16
47e27c2 to
f9ddec1
Compare
dowski
force-pushed
the
dowski/auth-state-server
branch
from
October 21, 2026 14:16
caf47c7 to
6638742
Compare
dowski
force-pushed
the
dowski/auth-state-client
branch
from
October 21, 2026 14:23
f9ddec1 to
3cbdf64
Compare
dowski
force-pushed
the
dowski/auth-state-server
branch
from
October 21, 2026 14:23
6638742 to
09a7584
Compare
dowski
force-pushed
the
dowski/auth-state-client
branch
from
October 21, 2026 16:39
3cbdf64 to
151b554
Compare
dowski
force-pushed
the
dowski/auth-state-server
branch
from
October 21, 2026 16:39
09a7584 to
f7ba3a5
Compare
dowski
force-pushed
the
dowski/auth-state-server
branch
from
October 21, 2026 19:50
f7ba3a5 to
e6411e9
Compare
dowski
force-pushed
the
dowski/auth-state-client
branch
from
October 21, 2026 19:50
151b554 to
5c9b6df
Compare
commit: |
dowski
force-pushed
the
dowski/auth-state-client
branch
from
October 21, 2026 20:00
5c9b6df to
f9ed6f0
Compare
dowski
force-pushed
the
dowski/auth-state-client
branch
from
October 26, 2026 23:27
a6df4b7 to
cc4f8cd
Compare
dowski
force-pushed
the
dowski/auth-state-server
branch
from
October 26, 2026 23:44
484d4d8 to
55613a7
Compare
dowski
force-pushed
the
dowski/auth-state-client
branch
from
October 26, 2026 23:44
cc4f8cd to
6760b81
Compare
dowski
force-pushed
the
dowski/auth-state-server
branch
from
October 26, 2026 23:50
55613a7 to
c951ae8
Compare
dowski
force-pushed
the
dowski/auth-state-client
branch
from
October 26, 2026 23:51
6760b81 to
e3250d7
Compare
dowski
force-pushed
the
dowski/auth-state-client
branch
from
October 27, 2026 14:51
e3250d7 to
8ddd4b6
Compare
dowski
force-pushed
the
dowski/auth-state-server
branch
from
October 27, 2026 14:51
c951ae8 to
0c52fd4
Compare
dowski
force-pushed
the
dowski/auth-state-server
branch
2 times, most recently
from
October 27, 2026 15:01
18e3159 to
e86f46c
Compare
dowski
force-pushed
the
dowski/auth-state-client
branch
from
October 27, 2026 15:01
8ddd4b6 to
be2e6fd
Compare
dowski
force-pushed
the
dowski/auth-state-server
branch
from
October 27, 2026 21:49
e86f46c to
e3d65ba
Compare
dowski
force-pushed
the
dowski/auth-state-client
branch
from
October 27, 2026 21:49
be2e6fd to
14c1ae8
Compare
dowski
force-pushed
the
dowski/auth-state-client
branch
from
October 28, 2026 14:05
14c1ae8 to
331cc36
Compare
dowski
force-pushed
the
dowski/auth-state-server
branch
from
October 28, 2026 14:05
e3d65ba to
0ccb472
Compare
dowski
changed the base branch from
dowski/auth-state-server
to
graphite-base/761
October 28, 2026 14:21
dowski
force-pushed
the
dowski/auth-state-client
branch
from
October 28, 2026 14:21
331cc36 to
f884db9
Compare
dowski
force-pushed
the
graphite-base/761
branch
from
October 28, 2026 14:21
0ccb472 to
9bde747
Compare
Both providers now subscribe to the app's `isAuthenticated` query through a `SessionWatcher` rendered inside `ConvexProviderWithAuth`. When the answer flips to `false` (a session revoked by sign-out elsewhere, `revokeOtherSessions`, or refresh-token reuse detection), the client signs itself out instead of staying signed in until the token expires. The subscription is gated on `useConvexAuth().isAuthenticated`, which is true only once the backend has accepted the access token. Under the gate, `false` means the accepted token's session is gone. Without it, `false` would also appear when the Convex client has cleared its auth (it couldn't get a token the backend accepts), which must not sign out a local session that may still be good. `ConvexAuthApi` therefore requires the `isAuthenticated` reference, and the Next.js server provider hands the client the function's *name* (from the `isAuthenticated` it already takes), since a reference proxy does not survive the server-to-client serialization boundary. Sign-out (rather than a bare local clear) also clears the SSR cookies holding the dead tokens; on an already-revoked session the server call is a no-op. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dowski
force-pushed
the
dowski/auth-state-client
branch
from
October 28, 2026 14:21
f884db9 to
0b7202c
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This happens via an
AuthStateWatcherrendered insideConvexProviderWithAuth.When
isAuthenticatedflips tofalse, the client signs itself outinstead of staying signed in until the token expires.