(nitroApp: any)
| 19 | * `googleOnly` / `marketing` into `createAuthPlugin`. |
| 20 | */ |
| 21 | const 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 | |
| 34 | export default dispatchAuthPlugin; |
nothing calls this directly
no test coverage detected