import { Dict_Apis } from "@/dict";
import { initAuth } from "@queenjs-modules/auth";

export function initAuthDef() {
  const auth = initAuth({
    config: {
      httpConfig: {
        baseURL: Dict_Apis.auth,
      },
      key: "queentreesku3d",
      loginPath: "/login",
      loginJumpPath: "/",
      logoutJumpPath: "/login",

      needCompanyLogin: false,
      needRegister: true,
      needResetPwd: true,
    },
  });
  auth.actions.initUser();
}
