File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import {
1313import { defu } from 'defu'
1414import { genInterface } from 'knitwork'
1515import type { DeepRequired } from 'ts-essentials'
16- import type { NuxtModule } from '@ nuxt/schema'
16+ import type { NuxtModule } from 'nuxt/schema'
1717import { isProduction } from './runtime/helpers'
1818import type {
1919 AuthProviders ,
Original file line number Diff line number Diff line change 11import { resolveApiUrlPath } from './url'
22import { ERROR_PREFIX } from './logger'
3- import { useRequestEvent , useRuntimeConfig } from '#imports'
3+ import { useRequestEvent } from '#imports'
44import type { useNuxtApp } from '#imports'
55import { callWithNuxt } from '#app/nuxt'
66import type { H3Event } from 'h3'
@@ -11,11 +11,7 @@ export async function _fetch<T>(
1111 fetchOptions : Parameters < typeof $fetch > [ 1 ] = { } ,
1212 proxyCookies = false
1313) : Promise < T > {
14- // This fixes https://github.com/sidebase/nuxt-auth/issues/927
15- const runtimeConfigOrPromise = callWithNuxt ( nuxt , useRuntimeConfig )
16- const runtimeConfig = 'public' in runtimeConfigOrPromise
17- ? runtimeConfigOrPromise
18- : await runtimeConfigOrPromise
14+ const runtimeConfig = nuxt . $config
1915
2016 const joinedPath = resolveApiUrlPath ( path , runtimeConfig )
2117
You can’t perform that action at this time.
0 commit comments