* wip * Refactor, tasks, processors, routes loading * Move Slack settings config to plugin * Fix translations in plugins * Move Slack auth to plugin * test * Move other slack-related files into plugin * Forgot to save * refactor
13 lines
314 B
TypeScript
13 lines
314 B
TypeScript
import { signin } from "@shared/utils/routeHelpers";
|
|
import { AuthenticationProviderConfig } from "@server/routes/auth/providers";
|
|
|
|
export default function presentProviderConfig(
|
|
config: AuthenticationProviderConfig
|
|
) {
|
|
return {
|
|
id: config.id,
|
|
name: config.name,
|
|
authUrl: signin(config.id),
|
|
};
|
|
}
|