File tree Expand file tree Collapse file tree
apps/origami-web/src/components/auth
packages/database/src/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"use client" ;
2+
23import { Button } from "@/components/ui/button" ;
34import { signIn } from "@/lib/auth/client" ;
45
56export 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 (
Original file line number Diff line number Diff line change @@ -5,7 +5,11 @@ import { drizzleAdapter } from "better-auth/adapters/drizzle";
55import { admin , anonymous , organization } from "better-auth/plugins" ;
66
77export 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" ,
You can’t perform that action at this time.
0 commit comments