* fix: refactor plugin manager * fix: make id optional * fix: allow add to accept single object * fix: getHooks * fix: tsc * fix: remove id
13 lines
305 B
TypeScript
13 lines
305 B
TypeScript
import { signin } from "@shared/utils/routeHelpers";
|
|
import { Plugin, Hook } from "@server/utils/PluginManager";
|
|
|
|
export default function presentProviderConfig(
|
|
config: Plugin<Hook.AuthProvider>
|
|
) {
|
|
return {
|
|
id: config.value.id,
|
|
name: config.name,
|
|
authUrl: signin(config.value.id),
|
|
};
|
|
}
|