mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-16 19:35:25 +02:00
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:
@@ -43,6 +43,17 @@ const { handler, api } = betterAuth({
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
...(IS_CLOUD
|
||||
? {
|
||||
account: {
|
||||
accountLinking: {
|
||||
enabled: true,
|
||||
trustedProviders: ["github", "google"],
|
||||
allowDifferentEmails: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
appName: "Dokploy",
|
||||
socialProviders: {
|
||||
github: {
|
||||
|
||||
Reference in New Issue
Block a user