Clerk Error fetching 400
Hello, I followed a tutorial online, and they use convex and clerk, so it's my first time using convex. They make the authentication using clerk, however when I tried to hit npx convex dev, it keeps saying error fetching 400.
This is the line of code in auth.config.js: const authConfig = { providers: [ { type: "clerk", // <-- must be "clerk" domain: "", // your Clerk frontend domain applicationId: "", // your Clerk application ID }, ], }; export default authConfig; This is the error message: ā Error fetching POST https://****************** 400 Bad Request: InvalidAuthConfig: Hit an error while pushing:
The pushed auth config is invalid: auth config file must include a list of provider credentials: data did not match any variant of untagged enum SerializedAuthInfo I appreciate your help š
This is the line of code in auth.config.js: const authConfig = { providers: [ { type: "clerk", // <-- must be "clerk" domain: "", // your Clerk frontend domain applicationId: "", // your Clerk application ID }, ], }; export default authConfig; This is the error message: ā Error fetching POST https://****************** 400 Bad Request: InvalidAuthConfig: Hit an error while pushing:
The pushed auth config is invalid: auth config file must include a list of provider credentials: data did not match any variant of untagged enum SerializedAuthInfo I appreciate your help š
2 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
You'll want to follow the official Convex guide here: https://docs.convex.dev/auth/clerk
type
doesn't need to be included in your auth config (might actually break things, not sure), should look like this, but you need to include your actual clerk frontend domain, this env var is for Vite users: