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

Function createAuthPlugin

packages/core/src/server/auth-plugin.ts:11–18  ·  view source on GitHub ↗
(options?: AuthOptions)

Source from the content-addressed store, hash-verified

9type NitroPluginDef = (nitroApp: any) => void | Promise<void>;
10
11export function createAuthPlugin(options?: AuthOptions): NitroPluginDef {
12 return async (nitroApp: any) => {
13 markDefaultPluginProvided(nitroApp, "auth");
14 // Wait for any other default plugins to finish mounting first.
15 await awaitBootstrap(nitroApp);
16 await autoMountAuth(getH3App(nitroApp), options);
17 };
18}
19
20/**
21 * Default auth plugin — email/password auth with optional Google OAuth.

Callers 15

dispatchAuthPluginFunction · 0.90
auth.tsFile · 0.90
auth.tsFile · 0.90
auth.tsFile · 0.90
auth.tsFile · 0.90
auth.tsFile · 0.90
auth.tsFile · 0.90
auth.tsFile · 0.90
auth.tsFile · 0.90
auth.tsFile · 0.90
auth.tsFile · 0.90
auth.tsFile · 0.90

Calls 4

awaitBootstrapFunction · 0.85
autoMountAuthFunction · 0.85
getH3AppFunction · 0.85

Tested by

no test coverage detected