#self hosted Invalid Auth Config

4 messages · Page 1 of 1 (latest)

toxic jasper
#

Error fetching POST https://convex.basicmonster.in/api/push_config 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: must use HTTPS

wraith cypressBOT
#

Hi @toxic jasper. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Based on the error message you're seeing, it appears you're having an issue with your authentication configuration in your self-hosted Convex instance. The specific error indicates that your auth config file is invalid because it's not using HTTPS in the domain URL.

The Issue

The error message states: "auth config file must include a list of provider credentials: must use HTTPS". This means that in your auth.config.ts (or auth.config.js) file, you need to ensure that any domain URLs specified in your authentication providers are using the HTTPS protocol.

How to Fix It

  1. Open your auth.config.ts (or auth.config.js) file in your Convex project directory.

  2. Make sure your providers configuration includes HTTPS in the domain URL. For example:

export default {
  providers: [
    {
      domain: "<https://your-domain.com",> // Must start with https://
      applicationID: "your-application-id",
    },
  ],
};
  1. After making this change, try running npx convex dev or npx convex deploy again to push your configuration.

This is a security requirement - Convex requires that authentication providers use HTTPS to ensure secure communication. Even for self-hosted instances, this requirement is enforced.

If you're still experiencing issues after making this change, you might want to check the Debugging Authentication guide for more thorough debugging steps.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@toxic jasper Kapa.ai is still learning and improving, please let me know how I did by reacting below.