(options?: AuthOptions)
| 9 | type NitroPluginDef = (nitroApp: any) => void | Promise<void>; |
| 10 | |
| 11 | export 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. |
no test coverage detected