nuxt3带有nuxt-auth v5有效吗?

发布于 2025-02-04 03:53:25 字数 396 浏览 2 评论 0原文

我可以使用nuxt-auth v5( https://auth.nuxtjs.org/ ) a href =“ https://v3.nuxtjs.org/” rel =“ nofollow noreferrer”> https://v3.nuxtjs.org/ )和vue3?

我正在尝试使用this。$ auth.loginwith() nuxt-auth的函数,但我遇到了一个错误,例如this。$ auth是未定义的。另外,当我使用NUXT3时,NUXT配置文件是用打字稿编写的。

有人试图一起使用这些版本吗?

Can I use Nuxt-auth v5 (https://auth.nuxtjs.org/) with Nuxt3 (https://v3.nuxtjs.org/) and Vue3 ?

I'm trying to use this.$auth.loginWith() function of Nuxt-auth but i get an error like this.$auth is undefined. Also, nuxt config files are written in typescript as I'm working with nuxt3.

Does someone ever try to use these versions together ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

揽清风入怀 2025-02-11 03:53:25

不幸的是, @nuxtjs/auth V5当前不支持NUXT 3。

维护者正在讨论下一个版本(V6)的兼容性。

您可以在线程中阅读更多信息: https://github.com/nuxt-com community/auth-module/essum/1520

有一个替代模块,非常不稳定: https://github.com/teranode/nuxt-module-anternatives

No. Unfortunately, @nuxtjs/auth v5 doesn't currently support Nuxt 3.

Maintainers are discussing of compatibility of the next version (v6).

You can read more in the thread: https://github.com/nuxt-community/auth-module/issues/1520

There is an alternative module, tho quite unstable: https://github.com/Teranode/nuxt-module-alternatives

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文