Amal Chandran
BABetter Auth
•Created by Amal Chandran on 4/19/2025 in #help
Exploring Better Auth SSO Plugin – Guidance on authClient.sso.register Usage
I’ve created a sample repository to explore the usage of the Better Auth SSO plugin.
While working on it, I was unsure about the appropriate placement and timing for calling
authClient.sso.register
, especially since invoking this API requires an active user session. Additionally, there is no implementation provided for signInWithTestUser
, which added to the confusion.
Documentation reference: Better Auth SSO Plugin - Register an OIDC Provider
It's worth noting that sensitive information such as clientId
and clientSecret
should be handled exclusively on the backend.
Sample repo: https://github.com/amal-chandran/sso-better-auth
If anyone has a production-ready example or further guidance on implementing this correctly, I’d greatly appreciate it!6 replies
BABetter Auth
•Created by Amal Chandran on 3/6/2025 in #help
How to grab LinkedIn access token for other API calls
I want to grab the token to make api calls to linkedin
How can i get the token so that i can use it for api calls like posting to linkedin ?\
Is the token automatically refreshed ?
2 replies
BABetter Auth
•Created by Amal Chandran on 2/22/2025 in #help
Can i use better auth in lambda
Im planning to use better-auth as a aws serverless handler with sst.dev
Hope its possible. Since there is no examples found thats y im asking
4 replies