MCPcopy Index your code
hub / github.com/BuilderIO/agent-native / dispatchAuthPlugin

Function dispatchAuthPlugin

packages/dispatch/src/server/plugins/auth.ts:21–32  ·  view source on GitHub ↗
(nitroApp: any)

Source from the content-addressed store, hash-verified

19 * `googleOnly` / `marketing` into `createAuthPlugin`.
20 */
21const dispatchAuthPlugin = async (nitroApp: any) => {
22 const { auth: authConfig = {} } = getDispatchConfig();
23 const googleOnly = authConfig.googleOnly ?? false;
24 const marketing =
25 (authConfig.marketing as Record<string, unknown> | undefined) ??
26 DEFAULT_MARKETING;
27 const plugin = createAuthPlugin({
28 googleOnly,
29 marketing: marketing as any,
30 });
31 return plugin(nitroApp);
32};
33
34export default dispatchAuthPlugin;

Callers

nothing calls this directly

Calls 2

createAuthPluginFunction · 0.90
getDispatchConfigFunction · 0.85

Tested by

no test coverage detected