[英]Nuxt3 with Nuxt-auth v5 works?
Can I use Nuxt-auth v5 ( https://auth.nuxtjs.org/ ) with Nuxt3 ( https://v3.nuxtjs.org/ ) and Vue3 ?我可以将 Nuxt-auth v5 ( https://auth.nuxtjs.org/ ) 与 Nuxt3 ( https://v3.nuxtjs.org/ ) 和 Vue3 一起使用吗?
I'm trying to use this.$auth.loginWith()
function of Nuxt-auth but i get an error like this.$auth is undefined
.我正在尝试使用 Nuxt-auth 的
this.$auth.loginWith()
函数,但我收到这样的错误this.$auth is undefined
。 Also, nuxt config files are written in typescript as I'm working with nuxt3.此外,当我使用 nuxt3 时,nuxt 配置文件是用 typescript 编写的。
Does someone ever try to use these versions together ?有人曾尝试一起使用这些版本吗?
No. Unfortunately, @nuxtjs/auth v5 doesn't currently support Nuxt 3.不,不幸的是,@nuxtjs/auth v5 目前不支持 Nuxt 3。
Maintainers are discussing of compatibility of the next version (v6).维护者正在讨论下一个版本 (v6) 的兼容性。
You can read more in the thread: https://github.com/nuxt-community/auth-module/issues/1520您可以在线程中阅读更多内容: https ://github.com/nuxt-community/auth-module/issues/1520
There is an alternative module, tho quite unstable: https://github.com/Teranode/nuxt-module-alternatives有一个替代模块,虽然很不稳定: https ://github.com/Teranode/nuxt-module-alternatives
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.