feat(dokploy): implement linking account feature for social providers

- Added a new component for linking Google and GitHub accounts to user profiles.
- Integrated account linking functionality with the authentication client, allowing users to link and unlink their social accounts.
- Updated the profile settings page to conditionally display the linking account component based on cloud settings.
- Enhanced error handling and loading states for a better user experience.
This commit is contained in:
Mauricio Siu
2026-02-09 02:21:20 -06:00
parent f5fa39b97e
commit 5d8b7b9b99
3 changed files with 262 additions and 4 deletions

View File

@@ -43,6 +43,17 @@ const { handler, api } = betterAuth({
},
}
: {}),
...(IS_CLOUD
? {
account: {
accountLinking: {
enabled: true,
trustedProviders: ["github", "google"],
allowDifferentEmails: true,
},
},
}
: {}),
appName: "Dokploy",
socialProviders: {
github: {