OAuth organization integrations

Can better-auth be used to add authentications for an org (e.g. what Discord calls Integrations in Server settings)? For SaaS apps I often want to separate user login (accounts the user can sign in with) from connecting integrations (the app performs operations on behalf of the org in a 3rd party system, e.g. post a tweet). My idea was to store Organization->Integrations in a similar way as User->Accounts. Is there a better-auth function I can call to trigger OAuth from an organization context but that wouldn't automatically try to create an Account and update a User, and instead let me manage adding the provider+authToken as an Integration?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?