nuxt-community / auth-module

Zero-boilerplate authentication support for Nuxt 2
https://auth.nuxtjs.org
MIT License
1.93k stars 925 forks source link

Test auth module with Nuxt 3 #1520

Closed bmulholland closed 1 year ago

bmulholland commented 2 years ago

make a new project with nuxt 3 and set up nuxt auth. https://v3.nuxtjs.org/

Then report back on if it works

Intevel commented 2 years ago

The Axios module is not yet compatible with Nuxt3, the first thing that happens when you start it is an axios error. They cant compiling it.

bmulholland commented 2 years ago

Thanks for looking into it!

Lycoon commented 2 years ago

Any update on it?

Intevel commented 2 years ago

No I don't think so, and as long as the Axios module is not compatible, the Auth module will not be compatible either.

Denoder commented 2 years ago

@Intevel i put a pull request for the axios module for nuxt 3, so waiting for that.

ironytr commented 2 years ago

@Intevel i put a pull request for the axios module for nuxt 3, so waiting for that.

Hello, is auth module working with ur pr? thank you for axios module yet auth module not working. Would you mind put a temporarily jwt auth project with your nuxt-module while waiting this project to work with nuxt3? T_T

Denoder commented 2 years ago

@Intevel i put a pull request for the axios module for nuxt 3, so waiting for that.

Hello, is auth module working with ur pr? thank you for axios module yet auth module not working. Would you mind put a temporarily jwt auth project with your nuxt-module while waiting this project to work with nuxt3? T_T

Unfortunately the auth module does not work with the PR as there's changes needed to be made to the auth module itself. Axios works with the pr but would need to do extra work with the auth module.

Intevel commented 2 years ago

Yes of course. But still, the Axios module has to work before we can work on the Auth Module for Nuxt 3. I will take a look at your PR. @Teranode

kazigk commented 2 years ago

Axios module works for me with {proxyHeaders: false}. It's just a little buggy.

Denoder commented 2 years ago

@kazigk What seems to be the issues you are having?

tad0xe commented 2 years ago

currently have a nuxt-auth project which only works on my local machine, but when deployed on live server it doesn't work

Denoder commented 2 years ago

I made a module directory for nuxt-community plugins I utilize for nuxt 3. You can use these until the current modules are updated: https://github.com/Teranode/nuxt-module-alternatives

nyxb commented 2 years ago

I made a module directory for nuxt-community plugins I utilize for nuxt 3. You can use these until the current modules are

I am confused?!

nuxt-module-alternatives Alternative modules to use while waiting for Nuxt 3 Compatibility

Current Modules

Nuxt Axios Module: Nuxt Community Repository Nuxt Proxy Module: Nuxt Community Repository Nuxt Auth Module: Nuxt Community Repository Nuxt Google Fonts Module: Nuxt Community Repository VueJS/Nuxt Pinia: VueJS/Nuxt Pinia Repository Nuxt Element Plus: ? Nuxt Vuex: ?

The Nuxt Auth Module: Nuxt Community Repository links exactly to this repository, which does not work with Nuxt3

Denoder commented 2 years ago

@VidarDev

the links are references to the repositories of the modules im currently modifying. The @nuxtjs folder contains the auth module, look at the readme.

nyxb commented 2 years ago

@Teranode

nvm my bad >.< now i check it ^^ good job and thanks for that

droplister commented 2 years ago

Was trying to use auth module with a fresh Nuxt 3 install:

[vite] Internal server error: Failed to resolve import "./middleware" from ".nuxt\auth.js". Does the file exist?
Plugin: vite:import-analysis

Vite does not love this line: https://github.com/nuxt-community/auth-module/blob/c9880dc28fa13ba036f078d37ff76e1267c65d21/templates/plugin.js#L1

pa3datka commented 2 years ago

nuxt 3 uses $fetch, why not make autn on fetch???

marwenbk commented 2 years ago

any update?

bmulholland commented 2 years ago

Nuxt 3 support is coming as part of a broader re-write, and you can track that status at https://v3.nuxtjs.org/community/roadmap/#-core-modules

OblivionSY commented 2 years ago

Is there an estimated timeframe? It just says "planned". In the meantime, what is the suggestion to use either instead or as a workaround?

Arturexe commented 1 year ago

Is this it?

https://www.npmjs.com/package/@nuxtjs-alt/auth

bmulholland commented 1 year ago

Closing this issue, as the current module will not work with Nuxt 3. You can track the timeline for Nuxt 3 support at https://nuxt.com/docs/community/roadmap/#-core-modules. That's the latest information I have.

KoenCa commented 1 year ago

This also seems a good alternative for Nuxt 3: https://sidebase.io/nuxt-auth/getting-started . It is based on a popular auth library for Next.js.