Skip to content

Commit ce9274a

Browse files
committed
feat: fix
1 parent d3a110d commit ce9274a

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

apps/origami-web/src/components/auth/sign-in-buttons.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
"use client";
2+
23
import { Button } from "@/components/ui/button";
34
import { signIn } from "@/lib/auth/client";
45

56
export function SignInButtons() {
67
const handleSignIn = async () => {
7-
const data = await signIn.social(
8+
await signIn.social(
89
{
910
provider: "google",
1011
callbackURL: `${process.env.NEXT_PUBLIC_BASE_URL}/auth`,
@@ -13,8 +14,6 @@ export function SignInButtons() {
1314
credentials: "include",
1415
}
1516
);
16-
17-
console.log(data);
1817
};
1918

2019
return (

packages/database/src/lib/auth.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ import { drizzleAdapter } from "better-auth/adapters/drizzle";
55
import { admin, anonymous, organization } from "better-auth/plugins";
66

77
export const auth = betterAuth({
8-
baseURL: process.env.BETTER_AUTH_URL || "http://localhost:8787",
8+
baseURL:
9+
process.env.BETTER_AUTH_URL ||
10+
(process.env.NODE_ENV === "production"
11+
? "https://api.origamichat.com"
12+
: "http://localhost:8787"),
913
secret: process.env.BETTER_AUTH_SECRET || undefined,
1014
database: drizzleAdapter(db, {
1115
provider: "pg",

0 commit comments

Comments
 (0)