Skip to content

Commit

Permalink
fix: add missing third party provider defaults
Browse files Browse the repository at this point in the history
Fixes the issue that icon and provider name are not properly returned by
the backend (and hence not shown in Hanko elements)  when defaults are not
set.
  • Loading branch information
lfleischmann committed Nov 19, 2024
1 parent b643256 commit 298fa19
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions backend/config/config_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,6 @@ func DefaultConfig() *Config {
},
ThirdParty: ThirdParty{
Providers: ThirdPartyProviders{
Google: ThirdPartyProvider{
DisplayName: "Google",
AllowLinking: true,
},
GitHub: ThirdPartyProvider{
DisplayName: "GitHub",
AllowLinking: true,
},
Apple: ThirdPartyProvider{
DisplayName: "Apple",
AllowLinking: true,
Expand All @@ -133,6 +125,22 @@ func DefaultConfig() *Config {
DisplayName: "Discord",
AllowLinking: true,
},
LinkedIn: ThirdPartyProvider{
DisplayName: "LinkedIn",
AllowLinking: true,
},
Microsoft: ThirdPartyProvider{
DisplayName: "Microsoft",
AllowLinking: true,
},
GitHub: ThirdPartyProvider{
DisplayName: "GitHub",
AllowLinking: true,
},
Google: ThirdPartyProvider{
DisplayName: "Google",
AllowLinking: true,
},
},
},
Passkey: Passkey{
Expand Down

0 comments on commit 298fa19

Please sign in to comment.