nuxt3带有nuxt-auth v5有效吗?
我可以使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是, @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