#CONVEX WITH CLERK AUTH --CLI Bug ( auth.config.ts is skipping on server run time)
7 messages · Page 1 of 1 (latest)
Hey Tom, thanks for jumping in 🙏
- OS & FS: I’m on macOS 14.4, APFS filesystem.
- auth.config.ts: Here’s the file:
export default {
providers: [
{
domain: process.env.EXPO_PUBLIC_CLERK_JWT_ISSUER_DOMAIN,
applicationID: "convex",
},
],
};
I’ve double-checked that the file is named exactly `auth.config.ts` and lives inside the `/convex` folder (not being gitignored or anything).
Steps I’ve already tried:
* Deleted `node_modules` + `package-lock.json` and reinstalled
* Made sure I’m on the latest Convex + Clerk packages
* Clerk is recording the user correctly, and the functions deploy, but Convex still throws:
Failed to authenticate: "No auth provider found matching the given token (no providers configured). Check convex/auth.config.ts."
So it looks like Convex is skipping/ignoring the `auth.config.ts` file entirely.
Do you know if this could be an issue with Convex not picking up the config in React Native / Expo setup?
*Upon further inspection i do see in my dashboard under authentication the issuer domain is present but the error persists
Looks like I tracked it down — this isn’t an OS/filesystem issue after all.
👉 Convex CLI 1.25.4 has a bug where it treats files like auth.config.ts or auth.config.js as having “multiple dots” in the name and skips them completely. That’s why my authentication config never gets loaded, and JWT validation fails.
*update *
The "multiple dots" bug exists across versions 1.25.4, 1.25.0,
1.24.8, and 1.23.0. All versions skip auth.config.ts files because they
contain what the CLI considers "multiple dots".
CONVEX WITH CLERK AUTH --CLI Bug ( auth.config.ts is skipping on server run time)
This message is working as intended, but I agree it's confusing; we'll changing this logging. This file is skipped during a different phase of bundling.
@umbral axle could you show a screenshot of your dashboard?
*Upon further inspection i do see in my dashboard under authentication the issuer domain is present but the error persists
and check the the failure message, is it still "No auth provider found matching the given token (no providers configured). Check convex/auth.config.ts."?
another possible thing: what is the url your WebSocket connects to, and what is the url your push connects to