Serenity VexedS
Convex Community3mo ago
14 replies
Serenity Vexed

AuthConfig not found in convex/server package (Auth0 & NextJs setup)

Hey all,

I've been working on a simple project that integrates Auth0 into a NextJs & Convex app. This is not the first time of me using this setup, but I'm running into a few problems at the moment.

The problems (see example code below):
- Users are able to log in via Auth0, session is available etc, auth.config.ts is setup, env vars setup, providers set, but the user stays unauthenticated in convex client & server functions. (no errors, just null user in convex, in auth0 user is defined)
- The AuthConfig type from convex/server in auth.config.ts ` cannot be found. Module '"convex/server"' has no exported member 'AuthConfig'``

My simple setup:
https://pastebin.com/ZfjDpxX4
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Was this page helpful?