Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/runtime/server/utils/auth.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import type { BetterAuthOptions } from 'better-auth'
import type { H3Event } from 'h3'
// @ts-expect-error Nuxt generates this virtual module in app builds.
import { createDatabase, db } from '#auth/database'
// @ts-expect-error Nuxt generates this virtual module in app builds.
import { createSecondaryStorage } from '#auth/secondary-storage'
import createServerAuth from '#auth/server'
import { betterAuth } from 'better-auth'
Expand Down
5 changes: 5 additions & 0 deletions src/runtime/server/virtual-modules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ declare module '#auth/database' {
export function createDatabase(...args: any[]): any
}

declare module '#imports' {
export function getRouteRules(event: any): any
export function useRuntimeConfig(): any
}

declare module '#auth/secondary-storage' {
export function createSecondaryStorage(...args: any[]): any
}
Expand Down
Loading