New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add login / authentication example #4
Comments
Hi @niallobrien Thank you for using nuxt.js in it's alpha stage, it's already planned in nuxt.js: https://github.com/nuxt/nuxt.js/projects/1 It will be easier to do with nuxt.js since you can use it as a middleware in express, adonis, etc. Also, nuxt.js is configurable with a |
Hi @niallobrien You can see an example here: https://nuxtjs.org/examples/auth-routes And the live demo on https://auth-routes.nuxtjs.org/ |
@Atinux what if we have a token which expires? I create a middleware on server which refreshes the token if it has been expired and update the session but vuex isn't refreshed with the new token. |
@vaggelis2018 you can check in client middleware if the token was refreshed on the server. client middleware : export default function ({ store }) {
// check if server refreshed the token and retrive it
store.dispatch('refreshToken', token)
} |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi, I think a lot of issues faced by Next.js apply to Nuxt.js also, and I believe that ultimately, such a feature will require a way to allow for custom server workflows, with session support etc.
Interested to discuss this.
vercel/next.js#153
The text was updated successfully, but these errors were encountered: