Patrick
BABetter Auth
•Created by SiliconValley77 on 3/20/2025 in #help
How to Host better-auth on another Server
I also just stumbled upon this, which you might be interested in: https://better-auth.vercel.app/docs/concepts/cookies#cross-subdomain-cookies
17 replies
BABetter Auth
•Created by SiliconValley77 on 3/20/2025 in #help
How to Host better-auth on another Server
Yes you can apparently only use the client in client components as you were already aware of. Sorry for the confusion.
The Better Auth documentation does not explicitly state how to do backend calls to a sperate server. I suggest you try to create a new
betterAuth
object in your next app and specify the remote server17 replies
BABetter Auth
•Created by SiliconValley77 on 3/20/2025 in #help
How to Host better-auth on another Server
I just took a second peek at the docs and I have to excuse myself. I interpreted something wrong.
17 replies
BABetter Auth
•Created by SiliconValley77 on 3/20/2025 in #help
How to Host better-auth on another Server
I believe you specify the auth server in the client using the
baseUrl
17 replies
BABetter Auth
•Created by SiliconValley77 on 3/20/2025 in #help
How to Host better-auth on another Server
It doesn't matter where you call the api server (frontend or backend) as long as the taret server is your auth server.
17 replies
BABetter Auth
•Created by SiliconValley77 on 3/20/2025 in #help
How to Host better-auth on another Server
In Technicality, there is probably some way or form for you get your desired behavior but I don't recommend it.
17 replies
BABetter Auth
•Created by SiliconValley77 on 3/20/2025 in #help
How to Host better-auth on another Server
You can use one auth server for every one of your sites, which lets you share accounts on diffrent websites but sessions are stored per site.
17 replies
BABetter Auth
•Created by SiliconValley77 on 3/20/2025 in #help
How to Host better-auth on another Server
Hello @SiliconValley77
You can follow one of the Backend (e.g Hono) examples on your server and then only configure the client in your frontend.
It is not possible for you to make other websites use your authentication server/provider without their cooperation. If you on the other hand want to allow users to sign into your application using services like Google, you can do that using OAuth (e.g Google OAuth). Based on the credentials requested by your OAuth application, you can gain access do different Google services like Google Docs or YouTube on behalf of the user that consented.
17 replies
DIAdiscord.js - Imagine an app
•Created by oenieke on 1/23/2025 in #djs-questions
Trying to change a channel name only works when my bot gets the admin role.

47 replies