Michal Srb
Michal Srb3y ago

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
Dan Mercer
Dan Mercer3y ago
I'm using 2, with Auth0 (i can't use ConvexProviderWithAuth0 afaik because I have some queries/mutations that aren't authed).
Michal Srb
Michal SrbOP3y ago
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.
Dan Mercer
Dan Mercer3y ago
Oh cool! I'll give that a shot and see if that helps. Thanks

Did you find this page helpful?