better auth as authentication service

It’s possible to use better auth as an authentication service for a Golang Rest api? I want to use organizations and roles with permission
3 Replies
KiNFiSH
KiNFiSH2w ago
one thing i could recommend to do Token based kind of communication like make sure better auth or either of them issue a JWT or session token or make sure to add a gateway in middle to smoothen the communication between your go backend and make sure to point to the same db as well..but things might tricky since they are things uncovered yet. but this is what i can suggest.
kingkyle
kingkyleOP2w ago
It’s tricky. Because I don’t want to use better auth on the Frontend. I just want to call everything through the Golang api which works with better. It’s not so clear for me
KiNFiSH
KiNFiSH2w ago
you dont need to put anyone of the better auth server setup on the client / frontend but you need to create a client for which it can communicate smoothly with your backend setup with better auth.

Did you find this page helpful?