Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

304 B
Raw Blame
import { TRPCError } from "@trpc/server";

import { env } from "@homarr/auth/env";

export const throwIfCredentialsDisabled = () => {
  if (!env.AUTH_PROVIDERS.includes("credentials")) {
    throw new TRPCError({
      code: "FORBIDDEN",
      message: "Credentials provider is disabled",
    });
  }
};