MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / getAuthProviderInfo

Function getAuthProviderInfo

packages/web/src/lib/utils.ts:82–198  ·  view source on GitHub ↗
(providerType: string)

Source from the content-addressed store, hash-verified

80}
81
82export const getAuthProviderInfo = (providerType: string): AuthProviderInfo => {
83 switch (providerType) {
84 case "github":
85 return {
86 id: "github",
87 name: "GitHub",
88 displayName: "GitHub",
89 icon: {
90 src: githubLogo,
91 className: "dark:invert",
92 },
93 };
94 case "gitlab":
95 return {
96 id: "gitlab",
97 name: "GitLab",
98 displayName: "GitLab",
99 icon: {
100 src: gitlabLogo,
101 },
102 };
103 case "google":
104 return {
105 id: "google",
106 name: "Google",
107 displayName: "Google",
108 icon: {
109 src: googleLogo,
110 },
111 };
112 case "okta":
113 return {
114 id: "okta",
115 name: "Okta",
116 displayName: "Okta",
117 icon: {
118 src: oktaLogo,
119 className: "dark:invert",
120 },
121 };
122 case "keycloak":
123 return {
124 id: "keycloak",
125 name: "Keycloak",
126 displayName: "Keycloak",
127 icon: {
128 src: keycloakLogo,
129 },
130 };
131 case "microsoft-entra-id":
132 return {
133 id: "microsoft-entra-id",
134 name: "Microsoft Entra ID",
135 displayName: "Microsoft Entra ID",
136 icon: {
137 src: microsoftLogo,
138 },
139 };

Callers 3

AuthMethodSelectorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected