thedevstockgirl
thedevstockgirl4mo ago

Bug in Convex Auth: shouldHandleCode does not exist

Followed the docs to allow handling oauth flow for custom integrations. But it says this does not exist. Also, is the @convex-dev/react-query still maintained? Or should we be using something else. Primarily use this to get loading states for mutations and actions.
No description
No description
No description
No description
10 Replies
erquhart
erquhart4mo ago
Convex react query is still maintained, just no recent commits. 0.0.84 of convex auth was released specifically to address this, I’ll take a look as soon as I’m back to my machine. Right here: https://github.com/get-convex/convex-auth/blob/f9db58c8ee45ec528e168f792a1621459fd3224e/src/react/index.tsx#L93 I see the version confirmed in your screenshots, but is there any chance the actual running version is different?
thedevstockgirl
thedevstockgirlOP4mo ago
Our repo uses the same version all across. We specially use sheriff in our repo to ensure all apps and packages are using the same versions of any installed package. We run a postinstall job to actually enforce this. So there really is no chance of a different running version. The post install job does prompt you to choose a version to resolve if it detects a drift.
erquhart
erquhart4mo ago
Using a different component than ConvexAuthProvider specifically? Here's the types for that published version on unpkg: https://app.unpkg.com/@convex-dev/auth@0.0.84/files/dist/react/index.d.ts
UNPKG
The CDN for everything on npm
erquhart
erquhart4mo ago
The error there says only children and client are accepted, which doesn't match ConvexAuthProvider even before this prop was added.
thedevstockgirl
thedevstockgirlOP3mo ago
I am using the ConvexAuthNextjsProvider. Error still persists. Is it perhaps not available for this?
No description
No description
erquhart
erquhart3mo ago
Ah, it’s missing from the server provider still. Are you using ConvexAuthNextjsServerProvider in your root layout
thedevstockgirl
thedevstockgirlOP3mo ago
Yes.
Sara
Sara3mo ago
the component takes children+ client variables, you don't need the "should run code" definition
No description
erquhart
erquhart3mo ago
Yeah it wouldn't go there, it would go in the server provider, but this prop wasn't added there. Fixing now. @thedevstockgirl fixed in 0.0.87, you can add this prop to the server provider
thedevstockgirl
thedevstockgirlOP3mo ago
Thanks so much.

Did you find this page helpful?