Never-ending mutations
Hey @Dan Mercer , are you using 1)
ConvexProviderWithAuth0
, or 2) ConvexReactClient
and passing an async function to setAuth
?
In either of these cases the mutation should retry and succeed if the user gets a new valid token and it should fail if the user was logged out.3 Replies
I'm using 2, with Auth0 (i can't use ConvexProviderWithAuth0 afaik because I have some queries/mutations that aren't authed).
You can use ConvexProviderWithAuth0 with logged out queries and mutations. See https://docs.convex.dev/using/auth#app-with-a-logged-out-mode . That could help.
Authentication | Convex Developer Hub
Add authentication to your Convex app.
Oh cool! I'll give that a shot and see if that helps. Thanks