nuxt-auth-utils
nuxt-auth-utils copied to clipboard
Cannot use useUserSession when setting imports scan on false
When you enable
imports: {
scan: false,
},
in your nuxt.config.ts file useUserSession stops working (not importing).
I also can't find a way to manually import it.
Other modules like useI18n keep working when doing this.
When removing scan: false, it works as intended.
Is it possible to support this feature?
Have you try to import from #imports ?
import { useUserSession } from '#imports'