Skip to content

Commit e8acd38

Browse files
fix(cli): add trusted origins in auth.ts (convex+better-auth)
1 parent 22647af commit e8acd38

File tree

1 file changed

+2
-1
lines changed
  • apps/cli/templates/auth/better-auth/convex/backend/convex

1 file changed

+2
-1
lines changed

apps/cli/templates/auth/better-auth/convex/backend/convex/auth.ts.hbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export const createAuth = (
2323
},
2424
{{#if (or (includes frontend "tanstack-start") (includes frontend "next"))}}
2525
baseUrl: siteUrl,
26+
trustedOrigins: [siteUrl],
2627
{{else}}
2728
trustedOrigins: [siteUrl],
2829
{{/if}}
@@ -45,4 +46,4 @@ export const getCurrentUser = query({
4546
handler: async (ctx) => {
4647
return authComponent.getAuthUser(ctx);
4748
},
48-
});
49+
});

0 commit comments

Comments
 (0)