@dubeyvishal/orbital-cli 1.6.9 → 1.6.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dubeyvishal/orbital-cli",
3
- "version": "1.6.9",
3
+ "version": "1.6.10",
4
4
  "description": "A fullstack CLI-based AI platform with chat mode, multi-tool agents, and agentic AI workflows. Includes GitHub login with device authorization, secure authentication, and modular client–server architecture for building intelligent automation tools.",
5
5
  "author": "Vishal Dubey",
6
6
  "license": "MIT",
@@ -18,5 +18,5 @@ export const FRONTEND_URL = stripTrailingSlash(
18
18
  );
19
19
 
20
20
  export const AUTH_BASE_URL = stripTrailingSlash(
21
- process.env.BETTER_AUTH_BASE_URL || API_BASE
21
+ process.env.BETTER_AUTH_BASE_URL || FRONTEND_URL || API_BASE
22
22
  );
@@ -3,7 +3,7 @@ import { betterAuth } from "better-auth";
3
3
  import { prismaAdapter } from "better-auth/adapters/prisma";
4
4
  import { deviceAuthorization } from "better-auth/plugins";
5
5
  import prisma from "./db.js";
6
- import { API_BASE, FRONTEND_URL } from "../config/api.js";
6
+ import { AUTH_BASE_URL, FRONTEND_URL } from "../config/api.js";
7
7
 
8
8
  const CLIENT_ORIGIN =
9
9
  process.env.CLIENT_ORIGIN ||
@@ -15,7 +15,7 @@ export const auth = betterAuth({
15
15
  provider: "postgresql",
16
16
  }),
17
17
 
18
- baseURL: API_BASE,
18
+ baseURL: AUTH_BASE_URL,
19
19
  basePath: "/api/auth",
20
20
 
21
21
  trustedOrigins: [CLIENT_ORIGIN],