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 +1 -2
- package/package.json +1 -1
- package/src/cli/commands/auth/login.js +1 -1
- package/src/index.js +2 -0
- package/src/lib/auth.js +8 -1
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -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
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
|
|