Skip to content

Commit a8338a5

Browse files
authored
Merge pull request #1216 from trycompai/claudio/fix-file-upload
[dev] [claudfuen] claudio/fix-file-upload
2 parents 72b63cd + b5020a9 commit a8338a5

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

apps/app/src/utils/auth.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,7 @@ export const auth = betterAuth({
4848
provider: 'postgresql',
4949
}),
5050
baseURL: process.env.BETTER_AUTH_URL,
51-
trustedOrigins: [
52-
// 'http://localhost:3000',
53-
'https://app.trycomp.ai',
54-
// 'https://app.staging.trycomp.ai',
55-
// 'https://portal.trycomp.ai',
56-
// 'https://portal.staging.trycomp.ai',
57-
],
51+
trustedOrigins: ['http://localhost:3000', 'https://*.trycomp.ai'],
5852
emailAndPassword: {
5953
enabled: true,
6054
},

apps/portal/src/app/lib/auth.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,7 @@ export const auth = betterAuth({
1515
// It's important so we can use custom IDs specified in Prisma Schema.
1616
generateId: false,
1717
},
18-
trustedOrigins: [
19-
// 'http://localhost:3000',
20-
'https://app.trycomp.ai',
21-
// 'https://app.staging.trycomp.ai',
22-
// 'https://portal.trycomp.ai',
23-
// 'https://portal.staging.trycomp.ai',
24-
],
18+
trustedOrigins: ['http://localhost:3000', 'https://*.trycomp.ai'],
2519
secret: process.env.AUTH_SECRET!,
2620
plugins: [
2721
organization({

0 commit comments

Comments
 (0)