nuxt-alt / auth

An alternative module to @nuxtjs/auth
https://nuxt-alt-auth.vercel.app/
MIT License
112 stars 20 forks source link

Adding this module to Nuxt 3.13 breaks plugin provide types #122

Open gbyesiltas opened 2 months ago

gbyesiltas commented 2 months ago

Environment

Nuxt Config

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2024-04-03',
  modules: ['@nuxt-alt/auth'],
  devtools: { enabled: true },
  future: {
    compatibilityVersion: 4,
  },
});

Reproduction

https://stackblitz.com/edit/github-6knne9-jq8rf1?file=app%2Fplugins%2Fhello-object-syntax.ts,app%2Fcomposables%2FuseHello.ts,nuxt.config.ts,package.json

Describe the bug

When this module is enabled, things provided to the nuxt context from plugins are typed as unknown.

Screenshot 2024-09-03 at 09 33 22

Additional context

There is a closed issue about this in the Nuxt repo here.

Logs

No response