We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fce4146 + 6a4e00e commit 44a1615Copy full SHA for 44a1615
2 files changed
apps/app/src/components/google-sign-in.tsx
@@ -23,8 +23,11 @@ export function GoogleSignIn({
23
? `/api/auth/invitation?code=${inviteCode}`
24
: "/";
25
26
+ const callbackURL = new URL(redirectTo, window.location.origin);
27
+
28
await authClient.signIn.social({
29
provider: "google",
30
+ callbackURL: callbackURL.toString(),
31
});
32
};
33
apps/app/src/utils/auth.ts
@@ -35,6 +35,11 @@ export const auth = betterAuth({
35
database: prismaAdapter(db, {
36
provider: "postgresql",
37
}),
38
+ trustedOrigins: [
39
+ "http://localhost:3000",
40
+ "https://app.trycomp.ai",
41
+ "https://dev.trycomp.ai",
42
+ ],
43
advanced: {
44
database: {
45
// This will enable us to fall back to DB for ID generation.
0 commit comments