* fix: Do not show actively disabled auth providers in self-hosted installation * self review * Refactor for easier mocking
13 lines
312 B
TypeScript
13 lines
312 B
TypeScript
import { signin } from "@shared/utils/urlHelpers";
|
|
import { AuthenticationProviderConfig } from "@server/routes/auth/providers";
|
|
|
|
export default function presentProviderConfig(
|
|
config: AuthenticationProviderConfig
|
|
) {
|
|
return {
|
|
id: config.id,
|
|
name: config.name,
|
|
authUrl: signin(config.id),
|
|
};
|
|
}
|