maverick-ai-cli 1.0.2 → 1.1.0

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/README.md CHANGED
@@ -88,6 +88,5 @@ If you want to contribute or run the server locally:
88
88
  npm run dev
89
89
  ```
90
90
 
91
- ## License
92
-
91
+ ## Licenses
93
92
  ISC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maverick-ai-cli",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -19,7 +19,7 @@ import prisma from "../../../lib/db.js";
19
19
  dotenv.config();
20
20
 
21
21
  const URL = "https://maverick-cli-backend.onrender.com";
22
- const CLIENT_ID = process.env.GITHUB_CLIENT_ID;
22
+ const CLIENT_ID = process.env.GITHUB_CLIENT_ID || "Ov23lij4Gu7H5XTLE2jY";
23
23
 
24
24
  // ~/.better-auth/token.json
25
25
  export const CONFIG_DIR = path.join(os.homedir(), ".better-auth");
package/src/index.js CHANGED
@@ -8,6 +8,8 @@ dotenv.config()
8
8
 
9
9
  const app = express()
10
10
 
11
+ app.set('trust proxy', true);
12
+
11
13
  // *----------- CORS --------------*
12
14
  app.use(
13
15
  cors({
package/src/lib/auth.js CHANGED
@@ -8,10 +8,11 @@ export const auth = betterAuth({
8
8
  provider: "postgresql",
9
9
  }),
10
10
  basePath: "api/auth",
11
+ baseURL: process.env.BETTER_AUTH_URL,
11
12
  trustedOrigins: ["https://maverick-cli.vercel.app"],
12
13
  socialProviders: {
13
14
  github: {
14
- clientId: process.env.GITHUB_CLIENT_ID,
15
+ clientId: process.env.GITHUB_CLIENT_ID || "Ov23lij4Gu7H5XTLE2jY",
15
16
  clientSecret: process.env.GITHUB_CLIENT_SECRET
16
17
  }
17
18
  },
@@ -21,6 +22,12 @@ export const auth = betterAuth({
21
22
  interval: "5s",
22
23
  }),
23
24
  ],
25
+ advanced: {
26
+ defaultCookieAttributes: {
27
+ sameSite: "none",
28
+ secure: true,
29
+ },
30
+ },
24
31
  });
25
32
 
26
33