rovravR
Convex Community6mo ago
7 replies
rovrav

Stuck trying to get Tanstack Start + Clerk working

All I did was the following

pnpm create convex@latest

Then chose tanstack start

and clerk auth

below is all the keys I have in the .env files

# Deployment used by `npx convex dev`
CONVEX_DEPLOYMENT=""

VITE_CONVEX_URL=""

VITE_CLERK_PUBLISHABLE_KEY=""
CLERK_SECRET_KEY=""
VITE_CLERK_FRONTEND_API_URL=""


I changed the auth.config.ts file

export default {
  providers: [
    {
      // Replace with your own Clerk Issuer URL from your "convex" JWT template
      // or with `process.env.CLERK_JWT_ISSUER_DOMAIN`
      // and configure CLERK_JWT_ISSUER_DOMAIN on the Convex Dashboard
      // See https://docs.convex.dev/auth/clerk#configuring-dev-and-prod-instances
      // Should look similar to 'https://main-swine-30.clerk.accounts.dev'.
      // domain: process.env.VITE_CLERK_FRONTEND_API_URL,
      domain: process.env.CLERK_JWT_ISSUER_DOMAIN,
      applicationID: 'convex',
    },
  ],
}


I also set up clerk too by setting up the JWT tokens in Clerk
Was this page helpful?