noob saibotN
Convex Community2y ago
6 replies
noob saibot

Convex + Clerk crashing in react-native after using the new Convex Auth

Hi Convex team,
I have 2 applications:

1 react-native-expo app using convex.dev (+ clerk for authentication). This app has been happily working fine for the past 4 months.

1 nextjs app (app router). For the nextjs app, I have decided to use the new Convex Auth library. So I followed the official documentation here https://labs.convex.dev/auth. I have successfully setup the new convex auth in dev and in production. And everything works fine in the web.

Here is now my auth config with the 2 entries: the first entry is used with clerk (this is how I started my application). The second entry is the new convex auth:

export default {
  providers: [
    {
      domain: process.env.CONVEX_AUTH_PROVIDER_DOMAIN,// <-- for clerk
      applicationID: "convex",
    },
    {
      domain: process.env.CONVEX_SITE_URL, // <-- for convex auth
      applicationID: "convex",
    },
  ],
};


This morning, I decided to spin up my react native expo (using same convex backend). I'm observing that clerk is crashing at start.
I'm not saying whether the crash is caused by this new setup (I have already filed an issue in the clerk forum). But I'm just investigating whether the crash could be related to the my new setup.

Also I am hesitating to rollback my changes given that new tables related to authentication have already been created (in dev and in prod).

Can I safely rollback my changes (and see if it fixed my issues?)

Thank you for your support.
Was this page helpful?