how to use odic plugin in a monorepo setup
Hello, i idealy want a auth.company.com to handle odic, and then have stuff like account.company.com, product.company.com, product.com use the same auth, i can see how to setup the odic server in better auth, but then how to use better auth in the other ones to login with it
4 Replies
@admin
Make auth.company.com the oidc provider
Link the others to it
how does that look like in better auth config
theirs no example from what i could find
Eh i suppose you make one auth instance with the oidc provider plugin and then use authClient in the other projects and set the baseUrl to point to the main auth. Sign in would require signIn.sso and finding your provider